mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 08:12:49 +08:00
style: 修改注释写反的问题
This commit is contained in:
parent
09ebd67c37
commit
e40a1f87f9
@ -32,16 +32,16 @@ export const useFile = () => {
|
||||
negativeText: '覆盖(不可撤回)',
|
||||
negativeButtonProps: { type: 'info', ghost: false },
|
||||
// 新增
|
||||
onNegativeCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData, true)
|
||||
window['$message'].success('导入成功!')
|
||||
},
|
||||
// 覆盖
|
||||
onPositiveCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData)
|
||||
window['$message'].success('导入成功!')
|
||||
},
|
||||
// 覆盖
|
||||
onNegativeCallback: async () => {
|
||||
fileData = JSON.parse(fileData)
|
||||
await updateComponent(fileData, true)
|
||||
window['$message'].success('导入成功!')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user