From b722830c23e6e94b2c14f0d47d247278a1b7138d Mon Sep 17 00:00:00 2001 From: huzhushan Date: Mon, 19 Jul 2021 10:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9BBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lock/Unlock.vue | 4 ++-- src/views/login/index.vue | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/lock/Unlock.vue b/src/views/lock/Unlock.vue index 681bd67..4dbf6dc 100644 --- a/src/views/lock/Unlock.vue +++ b/src/views/lock/Unlock.vue @@ -37,7 +37,7 @@ * @version: * @Date: 2021-04-23 19:17:20 * @LastEditors: huzhushan@126.com - * @LastEditTime: 2021-04-28 09:43:33 + * @LastEditTime: 2021-07-19 10:04:01 * @Author: huzhushan@126.com * @HomePage: https://huzhushan.gitee.io/vue3-element-admin * @Github: https://github.com/huzhushan/vue3-element-admin @@ -93,7 +93,7 @@ export default defineComponent({ Avatar, }, setup() { - const { ctx } = getCurrentInstance() + const { proxy: ctx } = getCurrentInstance() const store = useStore() const router = useRouter() const route = useRoute() diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 9413928..da0c29a 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -3,7 +3,7 @@ * @version: * @Date: 2021-04-20 11:06:21 * @LastEditors: huzhushan@126.com - * @LastEditTime: 2021-04-21 09:33:20 + * @LastEditTime: 2021-07-19 09:58:03 * @Author: huzhushan@126.com * @HomePage: https://huzhushan.gitee.io/vue3-element-admin * @Github: https://github.com/huzhushan/vue3-element-admin @@ -29,7 +29,6 @@ prefix-icon="el-icon-lock" show-password clearable - @input.enter="submit" placeholder="密码" /> @@ -62,7 +61,7 @@ import { useRouter, useRoute } from 'vue-router' export default defineComponent({ name: 'login', setup() { - const { ctx } = getCurrentInstance() // 可以把ctx当成vue2中的this + const { proxy: ctx } = getCurrentInstance() // 可以把ctx当成vue2中的this const store = useStore() const router = useRouter() const route = useRoute()