feat:调整打开okr明细的方法

This commit is contained in:
weifashi 2023-08-10 16:34:31 +08:00
parent 3fe9c60480
commit c8bc67e7bf

View File

@ -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)
}
}
},