😎修复水印问题(删除多余处理)
This commit is contained in:
parent
32cb1a3908
commit
e10e65d010
@ -1,7 +1,5 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { Local, Session } from '/@/utils/storage';
|
||||
import Watermark from '/@/utils/watermark';
|
||||
import { useThemeConfig } from '/@/stores/themeConfig';
|
||||
import { Session } from '/@/utils/storage';
|
||||
import { i18n } from '/@/i18n';
|
||||
|
||||
import { getAPI } from '/@/utils/axios-utils';
|
||||
@ -92,15 +90,6 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
// 增加了下面代码,引起当前会话的用户信息不会刷新,如:重新提交的头像不更新,需要新开一个页面才能正确显示
|
||||
// Session.set('userInfo', userInfos);
|
||||
|
||||
// 用户水印
|
||||
const storesThemeConfig = useThemeConfig();
|
||||
storesThemeConfig.themeConfig.watermarkText = d.watermarkText ?? '';
|
||||
if (storesThemeConfig.themeConfig.isWatermark) Watermark.set(storesThemeConfig.themeConfig.watermarkText);
|
||||
else Watermark.del();
|
||||
|
||||
Local.remove('themeConfig');
|
||||
Local.set('themeConfig', storesThemeConfig.themeConfig);
|
||||
|
||||
resolve(userInfos);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user