k94314517
2023-09-05 fa2f172812de8344fa22c4ef088ea2a67257a0d3
h5_standard/src/utils/request.ts
@@ -29,9 +29,9 @@
// 添加响应拦截器
service.interceptors.response.use(
    (response) => {
        // if (response.config.url?.indexOf('/lingyang/login') == -1 && response.config.url?.indexOf('/edgp/loginDemo') == -1 && response.config.url?.indexOf('/lingyang/loginDemo') == -1 && response.config.url?.indexOf('/edgp/login') == -1) {
        if (response.config.url?.indexOf('/lingyang/login') == -1 && response.config.url?.indexOf('/edgp/loginDemo') == -1 && response.config.url?.indexOf('/lingyang/loginDemo') == -1 && response.config.url?.indexOf('/edgp/login') == -1) {
            loading.clear();
        // }
        }
        if (response.data.code === 401) {     // 处理登录过期
            Toast.fail({ message: '登录过期,准备自动重新登录', duration: 2000, forbidClick: true })
            setTimeout(() => {