Procházet zdrojové kódy

use ajaxlogin instead

jason.lu před 6 roky
rodič
revize
367ff90144
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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');
+            //
         }
     }