| | |
| | | import { encryptBySM4, decryptBySM4 } from './sm4' // 添加decryptBySM4 |
| | | |
| | | const service = axios.create({ |
| | | // baseURL: apiConfig.baseURL, |
| | | baseURL: apiConfig.baseURL, |
| | | withCredentials: false, // 当跨域请求时发送cookie |
| | | timeout: 30000, // request timeout |
| | | }) |
| | |
| | | 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({ |