|
@@ -106,8 +106,7 @@ import { useMainStore } from '@/store'
|
|
|
const emit = defineEmits<{
|
|
const emit = defineEmits<{
|
|
|
(e: 'close'): void
|
|
(e: 'close'): void
|
|
|
(e: 'select', option: string): void
|
|
(e: 'select', option: string): void
|
|
|
- (e: 'setTitle', title: string): void
|
|
|
|
|
- (e: 'setTitle2', title: string, type: number): void
|
|
|
|
|
|
|
+ (e: 'setTitle', title: string, type: number): void
|
|
|
}>()
|
|
}>()
|
|
|
|
|
|
|
|
const { importPPTXFile, exporting } = useImport()
|
|
const { importPPTXFile, exporting } = useImport()
|
|
@@ -143,7 +142,7 @@ const handleFileUpload = async (files: FileList) => {
|
|
|
|
|
|
|
|
// 调用importPPTXFile并传入signal
|
|
// 调用importPPTXFile并传入signal
|
|
|
await importPPTXFile(files, { signal, onclose: () => {
|
|
await importPPTXFile(files, { signal, onclose: () => {
|
|
|
- emit('setTitle2', file.name.replace(/\.[^/.]+$/, ''), 2)
|
|
|
|
|
|
|
+ emit('setTitle', file.name.replace(/\.[^/.]+$/, ''), 2)
|
|
|
emit('close')
|
|
emit('close')
|
|
|
// showConfirmDialog({
|
|
// showConfirmDialog({
|
|
|
// title: lang.ssUploadSuccess,
|
|
// title: lang.ssUploadSuccess,
|