|
@@ -1,5 +1,6 @@
|
|
<template>
|
|
<template>
|
|
- <div class="login-container">
|
|
|
|
|
|
+ <!-- <AdaptiveContainer :options="{ width: 1920, height: 1080 }" style="overflow-y: hidden"> -->
|
|
|
|
+ <div class="login-container" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%">
|
|
<div class="login-bg"></div>
|
|
<div class="login-bg"></div>
|
|
<span class="-enter-x xl:hidden">
|
|
<span class="-enter-x xl:hidden">
|
|
<AppLogo :alwaysShowTitle="true" />
|
|
<AppLogo :alwaysShowTitle="true" />
|
|
@@ -15,9 +16,10 @@
|
|
</div>
|
|
</div>
|
|
<div class="bottom"> </div>
|
|
<div class="bottom"> </div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- </AdaptiveContainer> -->
|
|
</template>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
- import { computed } from 'vue';
|
|
|
|
|
|
+ import { computed, ref } from 'vue';
|
|
import { AppLogo } from '/@/components/Application';
|
|
import { AppLogo } from '/@/components/Application';
|
|
import LoginForm from './LoginForm.vue';
|
|
import LoginForm from './LoginForm.vue';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
@@ -25,12 +27,14 @@
|
|
import { useDesign } from '/@/hooks/web/useDesign';
|
|
import { useDesign } from '/@/hooks/web/useDesign';
|
|
import { useLocaleStore } from '/@/store/modules/locale';
|
|
import { useLocaleStore } from '/@/store/modules/locale';
|
|
import { useLoginState } from './useLogin';
|
|
import { useLoginState } from './useLogin';
|
|
|
|
+
|
|
|
|
+ import AdaptiveContainer from '/@/components/Container/src/Adaptive.vue';
|
|
|
|
+
|
|
defineProps({
|
|
defineProps({
|
|
sessionTimeout: {
|
|
sessionTimeout: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
-
|
|
|
|
const globSetting = useGlobSetting();
|
|
const globSetting = useGlobSetting();
|
|
const { prefixCls } = useDesign('login');
|
|
const { prefixCls } = useDesign('login');
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
@@ -81,7 +85,7 @@
|
|
|
|
|
|
.login-container {
|
|
.login-container {
|
|
width: 100vw;
|
|
width: 100vw;
|
|
- height: 100vh;
|
|
|
|
|
|
+ height: 100%;
|
|
background: linear-gradient(to bottom, #000c37, #001e63);
|
|
background: linear-gradient(to bottom, #000c37, #001e63);
|
|
padding: 0 !important;
|
|
padding: 0 !important;
|
|
position: relative;
|
|
position: relative;
|
|
@@ -147,11 +151,12 @@
|
|
|
|
|
|
.center {
|
|
.center {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: calc(100vh - 520px);
|
|
|
|
|
|
+ height: calc(100% - 540px);
|
|
display: flex;
|
|
display: flex;
|
|
- left: 0px;
|
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+ position: relative;
|
|
|
|
+ justify-content: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|