src/utils/http.js
@@ -48,8 +48,11 @@ axios.interceptors.request.use( config => { const store = useLogin() const flag = config.localJSON || false //地址为已经配置状态则不添加前缀 if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { if (!isURL(config.url) && !config.url.startsWith(baseUrl) && !flag) { config.url = baseUrl + config.url }