|
@@ -20,8 +20,8 @@
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
import { useAppStore } from '/@/store/modules/app';
|
|
import { useAppStore } from '/@/store/modules/app';
|
|
|
|
|
|
|
|
- import logoSvg from '/@/assets/svg/logo.svg';
|
|
|
|
|
- import logoWhiteSvg from '/@/assets/svg/logo-white.svg';
|
|
|
|
|
|
|
+ // import logoSvg from '/@/assets/svg/logo.svg';
|
|
|
|
|
+ // import logoWhiteSvg from '/@/assets/svg/logo-white.svg';
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
/**
|
|
/**
|
|
@@ -43,12 +43,12 @@
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const { title } = useGlobSetting();
|
|
const { title } = useGlobSetting();
|
|
|
const go = useGo();
|
|
const go = useGo();
|
|
|
-
|
|
|
|
|
|
|
+ import { sysSettingDetail } from '/@/api/sys/sysSettingApi';
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
|
|
|
|
|
|
- const showLogo = ref(logoSvg);
|
|
|
|
|
-
|
|
|
|
|
- onMounted(() => {
|
|
|
|
|
|
|
+ // const showLogo = ref(logoSvg);
|
|
|
|
|
+ const showLogo = ref('');
|
|
|
|
|
+ onMounted(async () => {
|
|
|
const bgColor = appStore.getMenuSetting.bgColor;
|
|
const bgColor = appStore.getMenuSetting.bgColor;
|
|
|
setBgColor(bgColor);
|
|
setBgColor(bgColor);
|
|
|
});
|
|
});
|
|
@@ -73,11 +73,15 @@
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
- function setBgColor(val) {
|
|
|
|
|
|
|
+ async function setBgColor(val) {
|
|
|
if (val == '#ffffff') {
|
|
if (val == '#ffffff') {
|
|
|
- showLogo.value = logoSvg;
|
|
|
|
|
|
|
+ // showLogo.value = logoSvg;
|
|
|
|
|
+ const res = await sysSettingDetail();
|
|
|
|
|
+ showLogo.value = res.logo;
|
|
|
} else {
|
|
} else {
|
|
|
- showLogo.value = logoWhiteSvg;
|
|
|
|
|
|
|
+ // showLogo.value = logoWhiteSvg;
|
|
|
|
|
+ const res = await sysSettingDetail();
|
|
|
|
|
+ showLogo.value = res.logo;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|