Explorar o código

use ajaxlogin instead

jason.lu %!s(int64=6) %!d(string=hai) anos
pai
achega
367ff90144
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      sourcecode/h5app/vue/src/views/login.vue

+ 2 - 1
sourcecode/h5app/vue/src/views/login.vue

@@ -38,6 +38,7 @@
                     let user = response.model;
                     userid = user.userId;
                     localStorage.setItem('frontend-userid', userid);
+                    this.$router.push('index');
                 } else {
                     // 失败的处理
                     console.warn("获取用户信息失败");
@@ -46,7 +47,7 @@
             }, {});
             // if (userid.length === 0) this.$router.push('warning');
             // else this.$router.push('index');
-            //this.$router.push('index');
+            //
         }
     }