|
@@ -65,6 +65,7 @@ import {storeToRefs} from 'pinia';
|
|
|
import {useThemeConfig} from '@/stores/themeConfig';
|
|
|
import {useUserInfo} from '@/stores/userInfo';
|
|
|
import {ElMessage, ElMessageBox} from 'element-plus';
|
|
|
+import { getImageUrl } from "@/utils/tools";
|
|
|
|
|
|
// 定义接口来定义对象的类型
|
|
|
interface LockScreenState {
|
|
@@ -218,6 +219,8 @@ onBeforeUnmount(() => {
|
|
|
window.clearInterval(state.setIntervalTime);
|
|
|
window.clearInterval(state.isShowLockScreenIntervalTime);
|
|
|
});
|
|
|
+
|
|
|
+let bgImg = themeConfig.value.loginImage ?? `url(${getImageUrl('login/log_bg.png')})`;
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
@@ -241,8 +244,7 @@ onBeforeUnmount(() => {
|
|
|
|
|
|
.layout-lock-screen-img {
|
|
|
@extend .layout-lock-screen-fixed;
|
|
|
- //background-image: url(https://i.hd-r.cn/e4a19d84364f185266666765ac21a5db.jpg);
|
|
|
- background-image: url(@/assets/images/login/bg.png);
|
|
|
+ background-image: v-bind(bgImg);
|
|
|
background-size: calc(100vw + 1px) calc(100vh + 1px);
|
|
|
z-index: 99;
|
|
|
}
|