Commit 156e9dd13b0fbee65d5e03d63c937105a1184847

Authored by fengtao
1 parent d3ab653a

fix:修改登录页背景图默认

Showing 1 changed file with 3 additions and 4 deletions
@@ -83,6 +83,7 @@ @@ -83,6 +83,7 @@
83 import { useLocaleStore } from '/@/store/modules/locale'; 83 import { useLocaleStore } from '/@/store/modules/locale';
84 import { useUserStore } from '/@/store/modules/user'; 84 import { useUserStore } from '/@/store/modules/user';
85 import { getPlatForm } from '/@/api/oem/index'; 85 import { getPlatForm } from '/@/api/oem/index';
  86 + import defaultShowLogoImg from '/@/assets/svg/login-bg.svg';
86 87
87 defineProps({ 88 defineProps({
88 sessionTimeout: { 89 sessionTimeout: {
@@ -100,8 +101,7 @@ @@ -100,8 +101,7 @@
100 if (logoUrl.value !== undefined) { 101 if (logoUrl.value !== undefined) {
101 ifCustom.value = false; 102 ifCustom.value = false;
102 } else { 103 } else {
103 - const defaultLogo = 'src/assets/svg/login-bg.svg';  
104 - logoUrl.value = 'url(' + defaultLogo + ')'; 104 + logoUrl.value = 'url(' + defaultShowLogoImg + ')';
105 } 105 }
106 }); 106 });
107 107
@@ -124,8 +124,7 @@ @@ -124,8 +124,7 @@
124 if (logoUrl.value !== undefined) { 124 if (logoUrl.value !== undefined) {
125 ifCustom.value = false; 125 ifCustom.value = false;
126 } else { 126 } else {
127 - const defaultLogo = 'src/assets/svg/login-bg.svg';  
128 - logoUrl.value = 'url(' + defaultLogo + ')'; 127 + logoUrl.value = 'url(' + defaultShowLogoImg + ')';
129 } 128 }
130 return userStore.platInfo?.name ?? title; 129 return userStore.platInfo?.name ?? title;
131 }); 130 });