|
@@ -34,13 +34,15 @@ axios.interceptors.response.use(
|
|
|
return res.data;
|
|
|
}
|
|
|
else {
|
|
|
- context.$alert(res.data.message,'提示',{
|
|
|
- confirmButtonText: '确定'
|
|
|
- }).then(()=>{
|
|
|
- if(res.data.code == '1004') {
|
|
|
- context.$router.replace({path:'/login'});
|
|
|
- }
|
|
|
+ context.$message({
|
|
|
+ message: res.data.message,
|
|
|
+ type: 'warning'
|
|
|
});
|
|
|
+ if (res.data.code == 10014) {
|
|
|
+ setTimeout(() => {
|
|
|
+ context.$router.replace('/login')
|
|
|
+ }, 2000)
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
err => {
|
|
@@ -104,8 +106,8 @@ let requestLoading = (url, method, params) => {
|
|
|
|
|
|
// const Prefix = StanleyLocal;
|
|
|
// const Prefix = 'http://192.168.1.195:8080/';
|
|
|
-// const Prefix = 'http://192.168.1.195/mobile/index.php?';
|
|
|
-const Prefix = 'https://www.xyzshops.cn/mobile/index.php?';
|
|
|
+const Prefix = 'http://192.168.1.195/mobile/index.php?';
|
|
|
+// const Prefix = 'https://www.xyzshops.cn/mobile/index.php?';
|
|
|
|
|
|
|
|
|
//测试请求
|