|
|
@@ -107,6 +107,7 @@ const emit = defineEmits<{
|
|
|
(e: 'close'): void
|
|
|
(e: 'select', option: string): void
|
|
|
(e: 'setTitle', title: string): void
|
|
|
+ (e: 'setTitle2', title: string, type: number): void
|
|
|
}>()
|
|
|
|
|
|
const { importPPTXFile, exporting } = useImport()
|
|
|
@@ -142,20 +143,21 @@ const handleFileUpload = async (files: FileList) => {
|
|
|
|
|
|
// 调用importPPTXFile并传入signal
|
|
|
await importPPTXFile(files, { signal, onclose: () => {
|
|
|
- emit('setTitle', file.name.replace(/\.[^/.]+$/, ''), 2); emit('close')
|
|
|
- showConfirmDialog({
|
|
|
- title: lang.ssUploadSuccess,
|
|
|
- content: lang.ssBatchInteractiveWebConfirm,
|
|
|
- confirmText: lang.ssBatchInteractiveWebConfirmDesc,
|
|
|
- cancelText: lang.ssBatchInteractiveWebConfirmDesc2,
|
|
|
- width: 400,
|
|
|
- onConfirm: () => {
|
|
|
- setRunningState(true)
|
|
|
- },
|
|
|
- onCancel: () => {
|
|
|
- console.log('取消删除')
|
|
|
- },
|
|
|
- })
|
|
|
+ emit('setTitle2', file.name.replace(/\.[^/.]+$/, ''), 2)
|
|
|
+ emit('close')
|
|
|
+ // showConfirmDialog({
|
|
|
+ // title: lang.ssUploadSuccess,
|
|
|
+ // content: lang.ssBatchInteractiveWebConfirm,
|
|
|
+ // confirmText: lang.ssBatchInteractiveWebConfirmDesc,
|
|
|
+ // cancelText: lang.ssBatchInteractiveWebConfirmDesc2,
|
|
|
+ // width: 400,
|
|
|
+ // onConfirm: () => {
|
|
|
+ // setRunningState(true)
|
|
|
+ // },
|
|
|
+ // onCancel: () => {
|
|
|
+ // console.log('取消删除')
|
|
|
+ // },
|
|
|
+ // })
|
|
|
} })
|
|
|
}
|
|
|
catch (error) {
|