fix: 修复env更新title后,store不更新
This commit is contained in:
@@ -328,6 +328,8 @@ export const useAppStore = defineStore('app', {
|
|||||||
valueLight: 'light'
|
valueLight: 'light'
|
||||||
})
|
})
|
||||||
isDark.value = this.getIsDark
|
isDark.value = this.getIsDark
|
||||||
|
const newTitle = import.meta.env.VITE_APP_TITLE
|
||||||
|
newTitle !== this.getTitle && this.setTitle(newTitle)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
persist: true
|
persist: true
|
||||||
|
|||||||
Reference in New Issue
Block a user