From c8bc67e7bfae0ca9ad50ab717129fd0380aa23da Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Thu, 10 Aug 2023 16:34:31 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=B0=83=E6=95=B4=E6=89=93?= =?UTF-8?q?=E5=BC=80okr=E6=98=8E=E7=BB=86=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/store/actions.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index bc1c4ef5f..d03d266f0 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -3444,15 +3444,21 @@ export default { */ openOkr({state}, link_id) { if (link_id > 0) { - state.okrWindow = { - type: 'okrDetails', - show: true, - id: link_id - }; - setTimeout(()=>{ - state.okrWindow.show = false; - state.okrWindow.id = 0; - },10) + if (window.innerWidth < 910) { + $A.goForward({ + path:'/manage/apps/#/okrDetails?data='+link_id, + }); + }else{ + state.okrWindow = { + type: 'okrDetails', + show: true, + id: link_id + }; + setTimeout(()=>{ + state.okrWindow.show = false; + state.okrWindow.id = 0; + },10) + } } },