quanyawei
2023-11-08 e49e0e98c6776900bc3578ed2fe880bfceeb1c2c
utils/request.js
@@ -19,7 +19,9 @@
        const baseUrl = process.uniEnv.baseUrl
        storage.set('baseUrl', baseUrl)
        // loading加载
        uni.showLoading({ title: '加载中', })
      uni.showLoading({
         title: '加载中',
      })
        // 拼接路劲,下面的配置文件会提到
        // uni.showLoading({ title: baseUrl, })
        options.url = baseUrl + '' + options.url
@@ -28,7 +30,6 @@
        // 判断登录是否
        if (isLogin) {
            let token = uni.getStorageSync('tonken')
            console.log('token', token)
            if (token !== null) {
                // options.header["token"] = token;
                options.header = {