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