格式化代码
This commit is contained in:
parent
a49ee2d4b2
commit
8553381768
@ -27,7 +27,7 @@
|
|||||||
const lockTime = computed(() => useLockscreen.lockTime);
|
const lockTime = computed(() => useLockscreen.lockTime);
|
||||||
|
|
||||||
const zIndex = ref(3000);
|
const zIndex = ref(3000);
|
||||||
const {getIsWaterMark} = useProjectSetting();
|
const { getIsWaterMark } = useProjectSetting();
|
||||||
const LoginName = PageEnum.BASE_LOGIN_NAME;
|
const LoginName = PageEnum.BASE_LOGIN_NAME;
|
||||||
|
|
||||||
let timer;
|
let timer;
|
||||||
@ -51,11 +51,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if(getIsWaterMark.value) {
|
if (getIsWaterMark.value) {
|
||||||
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
||||||
Watermark.set(waterText)
|
Watermark.set(waterText);
|
||||||
} else {
|
} else {
|
||||||
Watermark.del()
|
Watermark.del();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
|
@ -247,7 +247,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="drawer-setting-item">
|
<div class="drawer-setting-item">
|
||||||
<div class="drawer-setting-item-title"> 水印 </div>
|
<div class="drawer-setting-item-title"> 水印</div>
|
||||||
<div class="drawer-setting-item-action">
|
<div class="drawer-setting-item-action">
|
||||||
<el-switch v-model="settingStore.isWaterMark" @change="handleWaterChange" />
|
<el-switch v-model="settingStore.isWaterMark" @change="handleWaterChange" />
|
||||||
</div>
|
</div>
|
||||||
@ -354,12 +354,12 @@
|
|||||||
settingStore.menuSetting.mixMenu = false;
|
settingStore.menuSetting.mixMenu = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleWaterChange(val){
|
function handleWaterChange(val) {
|
||||||
if(val) {
|
if (val) {
|
||||||
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
||||||
Watermark.set(waterText)
|
Watermark.set(waterText);
|
||||||
} else {
|
} else {
|
||||||
Watermark.del()
|
Watermark.del();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,6 +59,6 @@ const setting = {
|
|||||||
//显示项目配置
|
//显示项目配置
|
||||||
isProjectSetting: true,
|
isProjectSetting: true,
|
||||||
//显示水印
|
//显示水印
|
||||||
isWaterMark:true
|
isWaterMark: true,
|
||||||
};
|
};
|
||||||
export default setting;
|
export default setting;
|
||||||
|
@ -22,7 +22,7 @@ const {
|
|||||||
isPageAnimate,
|
isPageAnimate,
|
||||||
pageAnimateType,
|
pageAnimateType,
|
||||||
isProjectSetting,
|
isProjectSetting,
|
||||||
isWaterMark
|
isWaterMark,
|
||||||
} = projectSetting;
|
} = projectSetting;
|
||||||
|
|
||||||
interface ProjectSettingState {
|
interface ProjectSettingState {
|
||||||
@ -38,7 +38,7 @@ interface ProjectSettingState {
|
|||||||
isPageAnimate: boolean; //是否开启路由动画
|
isPageAnimate: boolean; //是否开启路由动画
|
||||||
pageAnimateType: string; //路由动画类型
|
pageAnimateType: string; //路由动画类型
|
||||||
isProjectSetting: boolean; //显示项目配置
|
isProjectSetting: boolean; //显示项目配置
|
||||||
isWaterMark:boolean //显示水印
|
isWaterMark: boolean; //显示水印
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useProjectSettingStore = defineStore({
|
export const useProjectSettingStore = defineStore({
|
||||||
@ -56,7 +56,7 @@ export const useProjectSettingStore = defineStore({
|
|||||||
isPageAnimate,
|
isPageAnimate,
|
||||||
pageAnimateType,
|
pageAnimateType,
|
||||||
isProjectSetting,
|
isProjectSetting,
|
||||||
isWaterMark
|
isWaterMark,
|
||||||
}),
|
}),
|
||||||
getters: {
|
getters: {
|
||||||
getNavMode(): string {
|
getNavMode(): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user