Commit 073d18c2 by zhangxw

token修改

1 parent 11fc4aa2
......@@ -42,11 +42,7 @@ instance.interceptors.request.use(
instance.interceptors.response.use(
(response) => {
store.commit("hideLoading");
const serverCode = response.data.code,
token = response.headers["authorization"];
if (token || token === "") {
localStorage.setItem("token", token);
}
const serverCode = response.data.code;
if (serverCode === 200) {
if (response.status) {
return Promise.resolve(response);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!