fix(缺陷管理): 修复缺陷复制的问题

--bug=1036066 --user=宋天阳 【缺陷管理】缺陷列表-复制缺陷-复制的缺陷名称没显示copy https://www.tapd.cn/55049933/s/1472105
This commit is contained in:
song-tianyang 2024-03-08 18:36:51 +08:00 committed by 刘瑞斌
parent 5b049652f1
commit 390c3e2b07
1 changed files with 7 additions and 0 deletions

View File

@ -624,6 +624,12 @@
{ deep: true }
);
function renameCopyBug() {
if (isCopy.value) {
form.value.title = `copy_${form.value.title}`;
}
}
async function handleUploadImage(file: File) {
const { data } = await editorUploadFile({
fileList: [file],
@ -636,6 +642,7 @@
if (isEditOrCopy.value) {
//
await getDetailInfo();
renameCopyBug();
}
});
</script>