mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 处理数据导入,ID更新的可控功能
This commit is contained in:
@@ -34,13 +34,13 @@ export const useFile = () => {
|
||||
// 新增
|
||||
onPositiveCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData)
|
||||
await updateComponent(fileData, false, true)
|
||||
window['$message'].success('导入成功!')
|
||||
},
|
||||
// 覆盖
|
||||
onNegativeCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData, true)
|
||||
await updateComponent(fileData, true, true)
|
||||
window['$message'].success('导入成功!')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user