|
@@ -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!!');
|