| | |
| | | console.error('数据解密失败:', e); |
| | | } |
| | | } |
| | | |
| | | console.log('res.data',res.data) |
| | | |
| | | if (res.data.code == 200) { |
| | | console.log('res.data',res.data) |
| | |
| | | type: 'warning', |
| | | duration: 2000 |
| | | }) |
| | | // sessionStorage.clear(); |
| | | // window.location.replace('/'); |
| | | sessionStorage.clear(); |
| | | window.location.replace('/'); |
| | | return Promise.reject(res.data.data.data) |
| | | } |
| | | Message({ |
| | |
| | | type: 'warning', |
| | | duration: 2000 |
| | | }) |
| | | // sessionStorage.clear(); |
| | | // window.location.replace('/'); |
| | | sessionStorage.clear(); |
| | | window.location.replace('/'); |
| | | return Promise.reject(res.data.data) |
| | | } |
| | | Message({ |
| | |
| | | proxy: { |
| | | "/": { |
| | | // 设置以什么前缀开头的请求用来代理 |
| | | target: "http://192.168.110.34:11223", //要访问的跨域的域名 |
| | | target: "http://192.168.110.34:11221", //要访问的跨域的域名 |
| | | secure: false, // 使用的是http协议则设置为false,https协议则设置为true |
| | | changeOrigin: true, //开启代理 |
| | | pathRewrite: { |