Commit 7af925a7 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents dec0d1a7 3d6a38fa
......@@ -2,17 +2,17 @@ import http from "../request/http";
// 1.10.1. 查询应用服务列表
export function serviceList(params) {
return http.post("/zwfwsystem/service/list", params);
return http.post("/zwfw/system/service/list", params);
}
// 1.10.2. 查看应用服务
export function serviceInfo(params) {
return http.get("/zwfwsystem/service/info", params);
return http.get("/zwfw/system/service/info", params);
}
// 1.10.3. 保存更新应用服务
export function serviceSave(params) {
return http.post("/zwfwsystem/service/save", params);
return http.post("/zwfw/system/service/save", params);
}
// 1.10.4. 删除应用服务
export function serviceDelete(params) {
return http.get("/zwfwsystem/service/delete", params);
return http.get("/zwfw/system/service/delete", params);
}
......@@ -20,6 +20,7 @@ service.interceptors.request.use(
const Authorization = JSON.parse(localStorage.getItem("Authorization"));
if (Authorization) {
config.headers.Authorization = Authorization;
config.headers.Authtoken = Authorization;
}
return config;
},
......@@ -36,11 +37,13 @@ service.interceptors.response.use(
message.error({
content: msg,
maxCount: 1,
duration: 1,
});
} else if (code === 401) {
message.error({
message: msg,
maxCount: 1,
duration: 1,
});
Storage.clear(2);
// Storage.remove(2, "siteId");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment