|
@@ -40,9 +40,8 @@ export default {
|
|
|
},
|
|
|
async submitLogin(form) {
|
|
|
const res = await this.toLogin({ user: form });
|
|
|
- if (!res) return;
|
|
|
- if (res.role == '1') {
|
|
|
- window.location.href('./admin');
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ window.location.href = 'http://free.liaoningdoupo.com/static/home.html';
|
|
|
}
|
|
|
},
|
|
|
async submitRegister(forms) {
|