Commit d83790fb authored by “yiyousong”'s avatar “yiyousong”

pref:修改应用服务

parent e921e769
...@@ -2,17 +2,17 @@ import http from "../request/http"; ...@@ -2,17 +2,17 @@ import http from "../request/http";
// 1.10.1. 查询应用服务列表 // 1.10.1. 查询应用服务列表
export function serviceList(params) { export function serviceList(params) {
return http.post("/zwfwsystem/service/list", params); return http.post("/zwfw/system/service/list", params);
} }
// 1.10.2. 查看应用服务 // 1.10.2. 查看应用服务
export function serviceInfo(params) { export function serviceInfo(params) {
return http.get("/zwfwsystem/service/info", params); return http.get("/zwfw/system/service/info", params);
} }
// 1.10.3. 保存更新应用服务 // 1.10.3. 保存更新应用服务
export function serviceSave(params) { export function serviceSave(params) {
return http.post("/zwfwsystem/service/save", params); return http.post("/zwfw/system/service/save", params);
} }
// 1.10.4. 删除应用服务 // 1.10.4. 删除应用服务
export function serviceDelete(params) { export function serviceDelete(params) {
return http.get("/zwfwsystem/service/delete", params); return http.get("/zwfw/system/service/delete", params);
} }
...@@ -21,6 +21,7 @@ service.interceptors.request.use( ...@@ -21,6 +21,7 @@ service.interceptors.request.use(
if (Authorization) { if (Authorization) {
config.headers.Authorization = Authorization; config.headers.Authorization = Authorization;
} }
console.log(">>>>>", config);
return config; return config;
}, },
(error) => { (error) => {
...@@ -36,11 +37,13 @@ service.interceptors.response.use( ...@@ -36,11 +37,13 @@ service.interceptors.response.use(
message.error({ message.error({
content: msg, content: msg,
maxCount: 1, maxCount: 1,
duration: 1,
}); });
} else if (code === 401) { } else if (code === 401) {
message.error({ message.error({
message: msg, message: msg,
maxCount: 1, maxCount: 1,
duration: 1,
}); });
Storage.clear(2); Storage.clear(2);
// Storage.remove(2, "siteId"); // 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