乡村相册
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 (sessionStorage.getItem("prj") == "saas") {
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
}
|
||||
if (!config.withoutToken && store.state.token) {
|
||||
config.headers["Authorization"] = store.state.token
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user