mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 合并多选功能,解决冲突,升级版本到2.0.4
This commit is contained in:
@@ -31,15 +31,15 @@ export const useFile = () => {
|
||||
negativeText: '覆盖(不可撤回)',
|
||||
negativeButtonProps: { type: 'info', ghost: false },
|
||||
// 新增
|
||||
onNegativeCallback: async () => {
|
||||
onPositiveCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData, true)
|
||||
await updateComponent(fileData, false, true)
|
||||
window['$message'].success('导入成功!')
|
||||
},
|
||||
// 覆盖
|
||||
onPositiveCallback: async () => {
|
||||
onNegativeCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData)
|
||||
await updateComponent(fileData, true, true)
|
||||
window['$message'].success('导入成功!')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user