| | |
| | | // config.baseURL = "http://192.168.0.129:18185/api" |
| | | } else if (config.requestBaseUrl == "fengt") { |
| | | // feng tu 数据 |
| | | config.baseURL = "http://10.141.11.11:18080" |
| | | // config.baseURL = "http://10.141.11.11:18080" |
| | | config.baseURL = "http://192.168.0.112:18080" |
| | | } |
| | | |
| | | //headers判断是否需要 |
| | | const authorization = config.authorization === false |
| | | if (!authorization) { |
| | | config.headers["Authorization"] = `Basic ${Base64.encode("saber:saber_secret")}` |
| | | } |
| | | // const authorization = config.authorization === false |
| | | // if (!authorization) { |
| | | // config.headers["Authorization"] = `Basic ${Base64.encode("saber:saber_secret")}` |
| | | // } |
| | | //让每个请求携带token |
| | | const meta = config.meta || {} |
| | | const isToken = meta.isToken === false |