diff --git a/src/config/index.js b/src/config/index.js index 8ee609aac..55b2cd305 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -37,6 +37,8 @@ if(localStorage.getItem('apiVersion')){ //report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token if(window.location.href.indexOf('apiVersion') > 0){ apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2 + }else{ + apiVersion = 'v3' } }else{ // 在app