common/request.js
@@ -3,7 +3,6 @@ let server_url = VUE_APP_BASE_URL; let token = uni.getStorageSync('tk'); export function service(options = {}) { console.log(("option",options)) options.url = `${server_url}${options.url}`; //配置请求头 if(uni.getStorageSync('tk')){ @@ -23,7 +22,7 @@ //成功 options.success = (res) => { // if (Number(res.data.code) == 100) { if(Number(res.data.code) == 403){ if(Number(res.data.code) == 403 || Number(res.data.code) == 401){ uni.showToast({ icon: 'none', duration: 2000,