From a263dd50386b73f9992919a932f98b4bd5585052 Mon Sep 17 00:00:00 2001 From: loulijun2021 <1694218219@qq.com> Date: 星期一, 19 九月 2022 10:04:01 +0800 Subject: [PATCH] 1.app首页开发完成 --- unpackage/cache/wgt/H5EDA0853/js/http.js | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/unpackage/cache/wgt/H5EDA0853/js/http.js b/unpackage/cache/wgt/H5EDA0853/js/http.js index fa59595..547bd2a 100644 --- a/unpackage/cache/wgt/H5EDA0853/js/http.js +++ b/unpackage/cache/wgt/H5EDA0853/js/http.js @@ -4,10 +4,10 @@ */ const httprequest = axios.create({ baseURL: "http://121.196.36.24:8001/api/", - //timeout: 1000, - headers: { - token: "", - }, + timeout: 1000*10, + // headers: { + // token: "", + // }, }); // 璇锋眰鎷︽埅鍣� @@ -29,9 +29,10 @@ if (res.code === 401) { window.location = `${window.logoutUrl}?url=${window.location.origin}`; } - - if (res.code === '302') { - // console.log('123') + // 褰揷ode涓�300鏃惰繘琛屼竴涓彁绀� + if (res.code === '300') { + vant.Notify({ type: 'danger', message: res.Message }); + // vant.Toast({ type: 'danger', message: res.Message , position: 'top',}); } return response; -- Gitblit v1.9.3