|
@@ -58,7 +58,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="layoutLockScreen">
|
|
|
-import {nextTick, onMounted, onBeforeUnmount, reactive, ref} from 'vue';
|
|
|
+import { nextTick, onMounted, onBeforeUnmount, reactive, ref, computed } from 'vue';
|
|
|
import {formatDate} from '@/utils/formatTime';
|
|
|
import {Cookie, Local, Session} from '@/utils/storage';
|
|
|
import {storeToRefs} from 'pinia';
|
|
@@ -66,6 +66,7 @@ import {useThemeConfig} from '@/stores/themeConfig';
|
|
|
import {useUserInfo} from '@/stores/userInfo';
|
|
|
import {ElMessage, ElMessageBox} from 'element-plus';
|
|
|
import { getImageUrl } from "@/utils/tools";
|
|
|
+import { getCurrentCityConfig } from '@/utils/appConfig';
|
|
|
|
|
|
// 定义接口来定义对象的类型
|
|
|
interface LockScreenState {
|
|
@@ -220,7 +221,8 @@ onBeforeUnmount(() => {
|
|
|
window.clearInterval(state.isShowLockScreenIntervalTime);
|
|
|
});
|
|
|
|
|
|
-let bgImg = themeConfig.value.loginImage ?? `url(${getImageUrl('login/login_bg.png')})`;
|
|
|
+const { loginBg } = getCurrentCityConfig();
|
|
|
+const bgImg = `url(${getImageUrl(loginBg)}`;
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|