From 3ae0badc7d2a3548e3a24c9a3a6f9dd861bd787a Mon Sep 17 00:00:00 2001 From: "li.yuetong" Date: Mon, 24 Oct 2022 19:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=9A=8F=E6=9C=BA=E5=AF=86=E9=92=A5?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E8=A7=A3=E5=AF=86=E3=80=91=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=9C=A8?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=88=96=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E9=BB=98=E8=AE=A4=E6=98=AFv3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.js | 2 ++ 1 file changed, 2 insertions(+) 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