rk
3 天以前 d5e01405a50c89966ae06363b09fd385b47f99f0
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,