|
@@ -40,10 +40,12 @@ export default {
|
|
|
},
|
|
|
async submitLogin(form) {
|
|
|
const res = await this.toLogin({ user: form });
|
|
|
- if (res.uid) {
|
|
|
- if (res.role == 1 || res.role == 4 || res.role == 3) window.location.href = 'http://free.liaoningdoupo.com/platadmin';
|
|
|
- else window.location.href = 'http://free.liaoningdoupo.com/platlive/home.html';
|
|
|
- }
|
|
|
+ console.log(res);
|
|
|
+
|
|
|
+ // if (res.uid) {
|
|
|
+ // if (res.role == 0 || res.role == 1) window.location.href = 'http://free.liaoningdoupo.com/platadmin';
|
|
|
+ // else window.location.href = 'http://free.liaoningdoupo.com/platlive/home.html';
|
|
|
+ // }
|
|
|
},
|
|
|
async submitRegister(forms) {
|
|
|
let data = this.forms;
|