guhongwei %!s(int64=5) %!d(string=hai) anos
pai
achega
c21ff15060
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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!!');