style: 修改注释写反的问题

This commit is contained in:
奔跑的面条 2022-08-15 14:42:31 +08:00
parent 09ebd67c37
commit e40a1f87f9

View File

@ -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('导入成功!')
}
})
})