修改请求地址和登录验证码失败错误提醒接收参数
This commit is contained in:
@@ -15,7 +15,8 @@ const http = axios.create({
|
|||||||
|
|
||||||
// const requestURl = "http://localhost:8100/czg/";
|
// const requestURl = "http://localhost:8100/czg/";
|
||||||
// const requestURl = "https://web-api.hnsiyao.cn/czg/";//测试
|
// const requestURl = "https://web-api.hnsiyao.cn/czg/";//测试
|
||||||
const requestURl = "https://web.hnsiyao.cn/czg/";//正式
|
// const requestURl = "https://web.hnsiyao.cn/czg/";//正式
|
||||||
|
const requestURl = "http://192.168.1.31:8080/admin/";//php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求拦截
|
* 请求拦截
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ export default {
|
|||||||
// this.$router.replace({ name: "home" });
|
// this.$router.replace({ name: "home" });
|
||||||
} else {
|
} else {
|
||||||
// this.getCaptcha();
|
// this.getCaptcha();
|
||||||
this.$message.error(data.msg);
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -277,7 +277,7 @@ export default {
|
|||||||
this.$router.replace({ name: "home" });
|
this.$router.replace({ name: "home" });
|
||||||
} else {
|
} else {
|
||||||
this.getCaptcha();
|
this.getCaptcha();
|
||||||
this.$message.error(data.msg);
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user