fix(缺陷管理): 缺陷详情TAB页切换有误

--bug=1036424 --user=宋昌昌 【缺陷管理】查看缺陷详情时切换tab页,关闭后再次打开其他缺陷记录了上次查看的tab页 https://www.tapd.cn/55049933/s/1468384
This commit is contained in:
song-cc-rock 2024-03-04 13:52:14 +08:00 committed by 刘瑞斌
parent 7ab4d8579f
commit dd4ff46fd4
1 changed files with 42 additions and 34 deletions

View File

@ -421,7 +421,7 @@
replyUser: '', replyUser: '',
parentId: '', parentId: '',
content: currentContent, content: currentContent,
event: notifiers ? 'AT' : 'COMMENT', // (: COMMENT; @: AT; /@: REPLAY;) event: notifiers ? 'AT' : 'COMMENT', // (: COMMENT; @: AT; /@: REPLY;)
}; };
await createOrUpdateComment(params as CommentParams); await createOrUpdateComment(params as CommentParams);
Message.success(t('common.publishSuccessfully')); Message.success(t('common.publishSuccessfully'));
@ -431,6 +431,14 @@
console.log(error); console.log(error);
} }
} }
watch(
() => showDrawerVisible.value,
(val) => {
if (val) {
activeTab.value = 'detail';
}
}
);
</script> </script>
<style scoped lang="less"> <style scoped lang="less">