Browse Source

use ajaxlogin instead

jason.lu 6 years ago
parent
commit
367ff90144
1 changed files with 2 additions and 1 deletions
  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');
+            //
         }
     }