mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-12 22:35:37 +08:00
chore: update jsconfig
This commit is contained in:
10
jsconfig.json
Normal file
10
jsconfig.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user