lsc 4 days ago
parent
commit
de4d0d2b67
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/components/CreateCourseDialog.vue

+ 14 - 0
src/components/CreateCourseDialog.vue

@@ -143,6 +143,20 @@ const handleFileUpload = async (files: FileList) => {
     // 调用importPPTXFile并传入signal
     await importPPTXFile(files, { signal, onclose: () => {
       emit('setTitle', file.name.replace(/\.[^/.]+$/, ''), 2) 
+       // showConfirmDialog({
+      //   title: lang.ssUploadSuccess,
+      //   content: lang.ssBatchInteractiveWebConfirm,
+      //   confirmText: lang.ssBatchInteractiveWebConfirmDesc,
+      //   cancelText: lang.ssBatchInteractiveWebConfirmDesc2,
+      //   width: 400,
+      //   onConfirm: () => {
+      //     setRunningState(true)
+      //   },
+      //   onCancel: () => {
+      //     console.log('取消删除')
+      //   },
+      // })
+      console.log('等图片上传完毕(imgExporting === false)后触发保存')
       // ★ save 逻辑必须在 emit('close') 之前,否则 Modal 隐藏后组件卸载,watch 会自动 dispose
       const trySave = () => {
         const parentWindow = window.parent as any