新网格应用调整目录完成
This commit is contained in:
@@ -10,6 +10,8 @@ instance.defaults.baseURL = baseURLs[process.env.NODE_ENV]
|
||||
instance.interceptors.request.use(config => {
|
||||
if (config.url.startsWith("/node")) {
|
||||
config.baseURL = "/ns"
|
||||
} else if (/\/project\/grid/.test(location.pathname)) {
|
||||
config.baseURL = "/grid"
|
||||
} else if (/\/project\/sass/.test(location.pathname)) {
|
||||
config.baseURL = "/saas"
|
||||
} else if (/\/xiushan/.test(location.pathname)) {
|
||||
|
||||
Reference in New Issue
Block a user