|
@@ -2,6 +2,7 @@ import {baseApiUrl} from './config.js'
|
|
import {apiWechatLogin} from '@/api/user'
|
|
import {apiWechatLogin} from '@/api/user'
|
|
import CryptoJS from './crypto'
|
|
import CryptoJS from './crypto'
|
|
import store from '@/store/index'
|
|
import store from '@/store/index'
|
|
|
|
+const logger = require('./log.js')
|
|
|
|
|
|
const ENV=uni.getAccountInfoSync().miniProgram
|
|
const ENV=uni.getAccountInfoSync().miniProgram
|
|
|
|
|
|
@@ -129,6 +130,7 @@ const http=(url,params,method)=>{
|
|
},
|
|
},
|
|
fail(error) {
|
|
fail(error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
|
|
+ logger.error(error)
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title:'网络异常,稍后重试!',
|
|
title:'网络异常,稍后重试!',
|