chore: 优化初始参数数据

This commit is contained in:
2023-09-23 20:46:32 +08:00
parent 6013211a09
commit d1288a0c4f
8 changed files with 28 additions and 19 deletions

View File

@@ -146,7 +146,7 @@ const useAppStore = defineStore('app', {
* @param config 系统配置
*/
save(config: Config) {
this.$state.config = config;
this.config = config;
document.title = config.site_title || '';
document
.querySelector('link[rel="shortcut icon"]')