mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
fix(login): use a unified title (#305)
This commit is contained in:
parent
60e3519f93
commit
d87f7e1948
@ -10,7 +10,7 @@ import { initRouter } from "/@/router/utils";
|
|||||||
import { message } from "@pureadmin/components";
|
import { message } from "@pureadmin/components";
|
||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { storageSession } from "@pureadmin/utils";
|
import { storageSession } from "@pureadmin/utils";
|
||||||
import { ref, reactive, watch, computed } from "vue";
|
import { ref, reactive, watch, computed, getCurrentInstance } from "vue";
|
||||||
import { operates, thirdParty } from "./utils/enums";
|
import { operates, thirdParty } from "./utils/enums";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "/@/store/modules/user";
|
||||||
import { bg, avatar, currentWeek } from "./utils/static";
|
import { bg, avatar, currentWeek } from "./utils/static";
|
||||||
@ -20,7 +20,8 @@ import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
|||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Login"
|
name: "Login"
|
||||||
});
|
});
|
||||||
|
const title =
|
||||||
|
getCurrentInstance().appContext.config.globalProperties.$config?.Title;
|
||||||
const imgCode = ref("");
|
const imgCode = ref("");
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
@ -78,7 +79,7 @@ watch(imgCode, value => {
|
|||||||
<div class="login-form">
|
<div class="login-form">
|
||||||
<avatar class="avatar" />
|
<avatar class="avatar" />
|
||||||
<Motion>
|
<Motion>
|
||||||
<h2>Pure Admin</h2>
|
<h2>{{ title }}</h2>
|
||||||
</Motion>
|
</Motion>
|
||||||
|
|
||||||
<el-form
|
<el-form
|
||||||
|
Loading…
x
Reference in New Issue
Block a user