diff --git a/src/layout/navBars/breadcrumb/setings.vue b/src/layout/navBars/breadcrumb/setings.vue
index 3993e7e1..8680aeba 100644
--- a/src/layout/navBars/breadcrumb/setings.vue
+++ b/src/layout/navBars/breadcrumb/setings.vue
@@ -271,13 +271,6 @@
-
-
{{ $t('layout.fourWartermarkText') }}
-
-
-
-
-
{{ $t('layout.fiveTitle') }}
@@ -432,6 +425,7 @@ import Watermark from '/@/utils/wartermark';
import commonFunction from '/@/utils/commonFunction';
import other from '/@/utils/other';
import mittBus from '/@/utils/mitt';
+import { useUserInfo } from '/@/stores/userInfo';
// 定义变量内容
const { locale } = useI18n();
@@ -555,16 +549,11 @@ const onAddDarkChange = () => {
};
// 4、界面显示 --> 开启水印
const onWartermarkChange = () => {
- getThemeConfig.value.isWartermark ? Watermark.set(getThemeConfig.value.wartermarkText) : Watermark.del();
- setLocalThemeConfig();
-};
-// 4、界面显示 --> 水印文案
-const onWartermarkTextInput = (val: string) => {
- getThemeConfig.value.wartermarkText = verifyAndSpace(val);
- if (getThemeConfig.value.wartermarkText === '') return false;
- if (getThemeConfig.value.isWartermark) Watermark.set(getThemeConfig.value.wartermarkText);
+ const username = useUserInfo().userInfos.user.username;
+ getThemeConfig.value.isWartermark ? Watermark.set(username) : Watermark.del();
setLocalThemeConfig();
};
+
// 5、布局切换
const onSetLayout = (layout: string) => {
Local.set('oldLayout', layout);