fix: 背景图支持还原默认

This commit is contained in:
TsMask
2023-10-30 11:43:05 +08:00
parent 94a075e8bb
commit e26e73b6fe
3 changed files with 43 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ function fnGetCaptcha() {
// 判断是否有背景地址
const calcBG = computed(() => {
const bgURL = appStore.getLoginBackground;
if (bgURL) {
if (bgURL && bgURL !== '#') {
return {
backgroundImage: `url(${bgURL})`,
backgroundPosition: 'center',
@@ -101,9 +101,6 @@ const calcBG = computed(() => {
onMounted(() => {
fnGetCaptcha();
const container = document.getElementsByClassName('container').item(0);
if (container) {
}
});
/**改变多语言 */