We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f9caca commit 4001d0cCopy full SHA for 4001d0c
ui/src/views/tool/index.vue
@@ -478,9 +478,10 @@ function refresh(data?: any) {
478
getList()
479
}
480
481
-function copyTool(row: any) {
+async function copyTool(row: any) {
482
ToolDrawertitle.value = t('views.tool.copyTool')
483
- const obj = cloneDeep(row)
+ const res = await ToolApi.getToolById(row.id, changeStateloading)
484
+ const obj = cloneDeep(res.data)
485
delete obj['id']
486
obj['name'] = obj['name'] + ` ${t('views.tool.form.title.copy')}`
487
ToolFormDrawerRef.value.open(obj)
0 commit comments