马宇豪
2024-07-24 33413c6be7f338ba1ee92b3218e5c078364675dc
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,