guhongwei 4 年之前
父节点
当前提交
c21ff15060
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/login.vue

+ 5 - 1
src/views/login.vue

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