diff --git a/src/router/index.js b/src/router/index.js index 3bf369d..727c48f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,7 +70,9 @@ export const constantRoutes = [{ } }, ] } -] +] + + /** * asyncRoutes diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3aa8b7c..d50357a 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -106,7 +106,8 @@ this.$nextTick(() => { this.$refs.password.focus() }) - }, + }, + //处理登录 handleLogin() { this.$refs.loginForm.validate(valid => { if (valid) {