Commit 5f126974 by Mr. Lan

fix: 修复登陆bug。

parent 1a5854df
...@@ -53,8 +53,7 @@ export const constantRoutes = [ ...@@ -53,8 +53,7 @@ export const constantRoutes = [
{ {
path: '/login', path: '/login',
component: () => import('@/views/login/index'), component: () => import('@/views/login/index'),
hidden: true, hidden: true
meta: { noCache: true }
}, },
{ {
path: '/auth-redirect', path: '/auth-redirect',
......
...@@ -220,7 +220,9 @@ export default { ...@@ -220,7 +220,9 @@ export default {
handleLogin() { handleLogin() {
this.$refs.loginForm.validate(valid => { this.$refs.loginForm.validate(valid => {
if (valid) { if (valid) {
if (!this.loginTypeStatus) { if (this.loginTypeStatus) {
this.loginForm.loginType = 1
} else {
this.loginForm.loginType = 0 this.loginForm.loginType = 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment