12
This commit is contained in:
@@ -6,8 +6,9 @@ uni.$u.http.setConfig((defaultConfig) => {
|
||||
defaultConfig.baseURL = config.getRegisterUrl(); /* 根域名 */
|
||||
return defaultConfig;
|
||||
});
|
||||
|
||||
import requestInterceptors from "./requestInterceptors";
|
||||
import responseInterceptors from "./responseInterceptors";
|
||||
module.exports = (vm) => {
|
||||
require("./requestInterceptors")(vm);
|
||||
require("./responseInterceptors")(vm);
|
||||
requestInterceptors(vm);
|
||||
responseInterceptors(vm);
|
||||
};
|
||||
Reference in New Issue
Block a user