From d87f7e194867cb0c50cdd7ccfcfb9c949332355d Mon Sep 17 00:00:00 2001 From: hb0730 <1278032416@qq.com> Date: Wed, 13 Jul 2022 09:25:01 +0800 Subject: [PATCH] fix(login): use a unified title (#305) --- src/views/login/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 096fb926f..2bf6c06a6 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -10,7 +10,7 @@ import { initRouter } from "/@/router/utils"; import { message } from "@pureadmin/components"; import type { FormInstance } from "element-plus"; 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 { useUserStoreHook } from "/@/store/modules/user"; import { bg, avatar, currentWeek } from "./utils/static"; @@ -20,7 +20,8 @@ import { useRenderIcon } from "/@/components/ReIcon/src/hooks"; defineOptions({ name: "Login" }); - +const title = + getCurrentInstance().appContext.config.globalProperties.$config?.Title; const imgCode = ref(""); const router = useRouter(); const loading = ref(false); @@ -78,7 +79,7 @@ watch(imgCode, value => {