guhongwei 4 anos atrás
pai
commit
c21ff15060
1 arquivos alterados com 5 adições e 1 exclusões
  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!!');