lrf402788946 5 år sedan
förälder
incheckning
e52e977bd3
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      src/views/login.vue

+ 2 - 3
src/views/login.vue

@@ -40,9 +40,8 @@ export default {
     },
     async submitLogin(form) {
       const res = await this.toLogin({ user: form });
-      if (!res) return;
-      if (res.role == '1') {
-        window.location.href('./admin');
+      if (res.errcode == '0') {
+        window.location.href = 'http://free.liaoningdoupo.com/static/home.html';
       }
     },
     async submitRegister(forms) {