From 0faeeec2d97f906b093e192ec59bf9ec59f679bf Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sat, 28 Oct 2023 19:43:54 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/app.ts | 3 +- src/views/login.vue | 241 +++++++++++------- .../setting/components/change-login-bg.vue | 4 +- 3 files changed, 153 insertions(+), 95 deletions(-) diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index efd92961..82b0b1ab 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -1,7 +1,6 @@ import { getSysConf } from '@/api'; import defaultLOGOIcon from '@/assets/logo_icon.png'; import defaultLOGOBrand from '@/assets/logo_brand.png'; -import defaultLoginBackground from '@/assets/background.svg'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { validHttp } from '@/utils/regular-utils'; import { defineStore } from 'pinia'; @@ -80,7 +79,7 @@ const useAppStore = defineStore('app', { getLoginBackground(state) { const path = state.loginBackground; if (!path) { - return defaultLoginBackground; + return ''; } if (validHttp(path)) { return path; diff --git a/src/views/login.vue b/src/views/login.vue index 491b1149..91a55bde 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,7 +1,6 @@ diff --git a/src/views/system/setting/components/change-login-bg.vue b/src/views/system/setting/components/change-login-bg.vue index 892d7439..03edc1b7 100644 --- a/src/views/system/setting/components/change-login-bg.vue +++ b/src/views/system/setting/components/change-login-bg.vue @@ -131,7 +131,9 @@ onMounted(() => { :before-upload="fnBeforeUpload" :custom-request="fnUpload" > - 上传背景 + + 上传背景 +