mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 20:16:44 +08:00
【随机密钥加密解密】数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了
This commit is contained in:
@@ -34,7 +34,10 @@ if(localStorage.getItem('apiVersion')){
|
|||||||
apiVersion = localStorage.getItem('apiVersion')
|
apiVersion = localStorage.getItem('apiVersion')
|
||||||
}else{
|
}else{
|
||||||
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
|
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
|
||||||
apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2
|
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||||
|
if(window.location.href.indexOf('apiVersion') > 0){
|
||||||
|
apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
// 在app
|
// 在app
|
||||||
if(navigator.userAgent.indexOf('JZG_') > 0){
|
if(navigator.userAgent.indexOf('JZG_') > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user