refactor(login): 更新登录页面应用名称
- 将静态文本"超级后台"替换为动态显示的 appInfo.appName - 在登录页面的标题和 logo 文本中使用动态应用名称 - 引入 __APP_INFO 常量以获取应用信息
This commit is contained in:
parent
83ea6fa001
commit
be4e84919b
|
@ -2,13 +2,13 @@
|
|||
<div class="root">
|
||||
<div class="header">
|
||||
<img src="@/assets/vue.svg" alt="Logo" height="33" width="33"/>
|
||||
<div class="logo-text">超级后台</div>
|
||||
<div class="logo-text">{{ appInfo.appName}}</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="left-banner"></div>
|
||||
<div class="login-card">
|
||||
<div class="title">
|
||||
欢迎来到超级后台
|
||||
欢迎来到{{ appInfo.appName}}
|
||||
</div>
|
||||
<a-tabs class="account-tab" v-model:active-key="activeKey">
|
||||
<a-tab-pane :key="0" tab="账号登录">
|
||||
|
@ -42,6 +42,7 @@ import TelephoneLogin from '@/components/login/TelephoneLogin.vue';
|
|||
import {ref} from "vue";
|
||||
|
||||
const activeKey = ref(0)
|
||||
const appInfo = __APP_INFO
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue