|
@@ -31,6 +31,8 @@ service.interceptors.request.use(
|
|
|
|
|
|
const isQueryList =
|
|
|
config.url.includes("/list") || config.url.includes("/query");
|
|
|
+
|
|
|
+ const isSSO = config.url.includes("/login/sso");
|
|
|
if (getToken() && !isToken) {
|
|
|
config.headers["Authorization"] = "Bearer " + getToken();
|
|
|
}
|
|
@@ -44,6 +46,7 @@ service.interceptors.request.use(
|
|
|
if (
|
|
|
!isRepeatSubmit &&
|
|
|
!isQueryList &&
|
|
|
+ !isSSO &&
|
|
|
(config.method === "post" || config.method === "put")
|
|
|
) {
|
|
|
const requestObj = {
|
|
@@ -114,7 +117,7 @@ service.interceptors.response.use(
|
|
|
url: res.config.url,
|
|
|
data: res.config.data,
|
|
|
method: res.config.method,
|
|
|
- params: { ...res.config.params, DName: "蒙奇·D·伟涛" },
|
|
|
+ params: { ...res.config.params},
|
|
|
});
|
|
|
}
|
|
|
} catch (err) {
|