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()