|
@@ -5,6 +5,7 @@ import { loginUrl } from '@/apiConfig/requestIP.js'
|
|
|
import { Encrypt } from '@/utils/crypto-js.js'
|
|
|
import { message } from '@/utils/mesDebounce'
|
|
|
import router from '@/router/index.js'
|
|
|
+import store from '@/store/index.js'
|
|
|
|
|
|
// create an axios instance
|
|
|
const service = axios.create({
|
|
@@ -117,6 +118,8 @@ service.interceptors.response.use(
|
|
|
if (error.response.status === 401) {
|
|
|
location.href = loginUrl
|
|
|
} else if (error.response.status === 403) {
|
|
|
+ store.dispatch('global/setBizId', -1)
|
|
|
+ store.dispatch('global/setBizName', '')
|
|
|
router.push({ name: 'notAccess' })
|
|
|
}
|
|
|
} else {
|