产品库升级,不用再改加载路径了
This commit is contained in:
@@ -9,7 +9,7 @@ let baseURLs = {
|
||||
instance.defaults.baseURL = baseURLs[process.env.NODE_ENV]
|
||||
instance.interceptors.request.eject(0);
|
||||
instance.interceptors.request.use(config => {
|
||||
if (/^\/xiushan/.test(location.pathname)) {
|
||||
if (/\/xiushan/.test(location.pathname)) {
|
||||
config.baseURL = "/xsjr"
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user