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 = {