perf: 优化事件代码结构

This commit is contained in:
奔跑的面条
2022-11-12 21:49:04 +08:00
parent afc8f907ce
commit 572ab73c92
9 changed files with 118 additions and 38 deletions
@@ -38,6 +38,7 @@ export const useFile = () => {
await updateComponent(fileData, false, true)
window['$message'].success('导入成功!')
} catch (error) {
console.log(error)
window['$message'].error('组件导入失败,请检查文件完整性!')
}
},
@@ -48,6 +49,7 @@ export const useFile = () => {
await updateComponent(fileData, true, true)
window['$message'].success('导入成功!')
} catch (error) {
console.log(error)
window['$message'].error('组件导入失败,请检查文件完整性!')
}
}