jiangping
2025-05-07 c3aaf28f7316cce12eec007a9f85a96cbcddeec2
pda/utils/service.js
@@ -5,15 +5,10 @@
         let token = uni.getStorageSync('token') || null
         // 在登录的时候需要储存 token uni.setStorageSync("authorization","这里是登录获取的token值")
         // uni.showLoading({
         //    title:"加载中..."
         // })
         if(!options.hideLoading){
            uni.showLoading({
               title: '加载中',
               mask: true
            })
         }
         uni.showLoading({
            title: '加载中',
            mask: true
         })
         uni.request({
            url: baseUrl + options.url,
            data: options.data || {},
@@ -28,7 +23,7 @@
               // 控制台显示数据信息
               uni.hideLoading()
               // 登录过期
               if (data.code === 5112) {
               if (data.code === 5112 || data.code === 5111) {
                  setTimeout(() => {
                     uni.showToast({
                        title: data.message,