From 25d2bde53fef2eb1c5bf5124553c9abe34feb42b Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 25 Nov 2021 18:34:24 +0800 Subject: [PATCH] bug --- src/api/api.js | 8 -------- src/pages/lobbyManager/list/index.vue | 6 ++++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index 1c321e1..4a7c785 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -27,8 +27,6 @@ service.interceptors.response.use( if(error.response && error.response.status == 404){ router.push('/blank.vue') } - - return Promise.reject(error.response) } ) @@ -48,8 +46,6 @@ if(tokens){ }else{ token = sessionStorage.getItem('token') } -console.log(token) -// let token = sessionStorage.getItem('token') export function get(url, params = {}) { // params.t = new Date().getTime(); //get方法加一个时间参数,解决ie下可能缓存问题. return service({ @@ -61,8 +57,6 @@ export function get(url, params = {}) { params }) } - - //封装post请求 export function post(url, data = {}) { //默认配置 @@ -78,7 +72,6 @@ export function post(url, data = {}) { sendObject.data=JSON.stringify(data); return service(sendObject) } - //封装put方法 (resfulAPI常用) export function put(url,data = {}){ return service({ @@ -101,7 +94,6 @@ export function deletes(url){ } }) } - //不要忘记export export { service diff --git a/src/pages/lobbyManager/list/index.vue b/src/pages/lobbyManager/list/index.vue index 4fe604f..c636759 100644 --- a/src/pages/lobbyManager/list/index.vue +++ b/src/pages/lobbyManager/list/index.vue @@ -1,7 +1,7 @@