chore: update jsconfig

This commit is contained in:
bentz
2021-11-23 18:24:12 +08:00
parent 33b149fded
commit a9a6615eb0
2 changed files with 12 additions and 7 deletions

10
jsconfig.json Normal file
View File

@@ -0,0 +1,10 @@
{
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"experimentalDecorators": true
}
}

View File

@@ -1,15 +1,10 @@
import Taro from '@tarojs/taro'
import qs from 'qs'
import S from '@/spx'
import { isAlipay, isWeixin } from '@/utils'
import { isAlipay, isWeixin, isWeb } from '@/utils'
import log from '@/utils/log'
import { HTTP_STATUS } from './consts'
let demoIsTokenRefreshed = true
setTimeout(() => {
demoIsTokenRefreshed = false
}, 0);
class RequestQueue {
constructor() {
this.requestList = []
@@ -315,7 +310,7 @@ class API {
}
}
if (process.env.NODE_ENV === 'production') {
if (process.env.NODE_ENV === 'production' && !isWeb) {
Taro.addInterceptor(Taro.interceptors.logInterceptor)
}