fix: 处理router.多语言显示

This commit is contained in:
TsMask
2023-11-17 11:16:08 +08:00
parent 69bd3879b1
commit bb577bef0b
5 changed files with 69 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ const useAppStore = defineStore('app', {
actions: {
/**设置网页标题 */
setTitle(title?: string) {
if (title) {
if (title && title.indexOf('router.') === -1) {
document.title = `${title} - ${this.appName}`;
} else {
document.title = this.appName;