From e10e65d010b64965872d368f3111230fc34c2fc0 Mon Sep 17 00:00:00 2001 From: zuohuaijun Date: Thu, 23 Jan 2025 16:38:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8E=E4=BF=AE=E5=A4=8D=E6=B0=B4?= =?UTF-8?q?=E5=8D=B0=E9=97=AE=E9=A2=98=EF=BC=88=E5=88=A0=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E5=A4=84=E7=90=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/stores/userInfo.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Web/src/stores/userInfo.ts b/Web/src/stores/userInfo.ts index a5757cdb..73ed9055 100644 --- a/Web/src/stores/userInfo.ts +++ b/Web/src/stores/userInfo.ts @@ -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); }); });