mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 修复登录页面从大屏切换小屏填写信息消失问题 (#450)
#### What this PR does / why we need it? #### Summary of your change #### Please indicate you've done the following: - [ ] Made sure tests are passing and test coverage is added if needed. - [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). - [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
This commit is contained in:
parent
c927132aa6
commit
6472227b6b
@ -1,27 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="login-backgroud" v-if="statusCode == 1">
|
<div class="login-backgroud" v-if="statusCode == 1">
|
||||||
<div class="login-wrapper" v-if="screenWidth > 1110">
|
<div class="login-wrapper">
|
||||||
<div class="left inline-block">
|
<div :class="screenWidth > 1110 ? 'left inline-block' : ''">
|
||||||
<div class="login-title">
|
<div class="login-title">
|
||||||
<span>{{ $t('commons.login.title') }}</span>
|
<span>{{ $t('commons.login.title') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<img src="@/assets/images/1panel-login.png" alt="" />
|
<img src="@/assets/images/1panel-login.png" alt="" v-if="screenWidth > 1110" />
|
||||||
</div>
|
</div>
|
||||||
<div class="right inline-block">
|
<div :class="screenWidth > 1110 ? 'right inline-block' : ''">
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<LoginForm ref="loginRef"></LoginForm>
|
<LoginForm ref="loginRef"></LoginForm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="login-wrapper" v-else>
|
|
||||||
<div class="login-title">
|
|
||||||
<span>{{ $t('commons.login.title') }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="login-container">
|
|
||||||
<LoginForm ref="loginRef"></LoginForm>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left: 50px" v-if="statusCode == -1">
|
<div style="margin-left: 50px" v-if="statusCode == -1">
|
||||||
<h1>{{ $t('commons.login.safeEntrance') }}</h1>
|
<h1>{{ $t('commons.login.safeEntrance') }}</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user