新网格应用调整目录完成
This commit is contained in:
@@ -13,6 +13,9 @@ instance.interceptors.request.use(config => {
|
||||
if (/AppCountryAlbum/.test(location.pathname)) {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
if (/\/grid\//.test(location.pathname)) {
|
||||
config.baseURL = '/grid'
|
||||
}
|
||||
if (sessionStorage.getItem("prj") == "saas") {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user