guhongwei před 4 roky
rodič
revize
c21ff15060
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      src/views/login.vue

+ 5 - 1
src/views/login.vue

@@ -69,7 +69,11 @@ export default {
         if (valid) {
           let res = await this.toLogin({ user: this.form });
           if (res.id) {
-            this.$router.push('/');
+            if (res.type == '0') {
+              this.$router.push('/');
+            } else {
+              this.$router.push('/liveIndex');
+            }
           }
         } else {
           console.log('error submit!!');