diff --git a/src/App.vue b/src/App.vue index 8b1b187a..087985a5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,6 @@ import { storeToRefs } from 'pinia' import { useScreenStore, useMainStore, useSnapshotStore } from '@/store' import { LOCALSTORAGE_KEY_DISCARDED_DB } from '@/configs/storage' import { isPC } from './utils/common' -import useExport from './hooks/useExport' import Editor from './views/Editor/index.vue' import Screen from './views/Screen/index.vue' @@ -36,18 +35,6 @@ export default defineComponent({ onMounted(() => { snapshotStore.initSnapshotDatabase() mainStore.setAvailableFonts() - - const { importSpecificFile } = useExport() - - if ('launchQueue' in window) { - /* eslint-disable-next-line */ - (window as any).launchQueue.setConsumer(async (launchParams: any) => { - if (launchParams.files && launchParams.files.length) { - const files: File[] = launchParams.files - importSpecificFile(files, true) - } - }) - } }) // 应用注销时向 localStorage 中记录下本次 indexedDB 的数据库ID,用于之后清除数据库 diff --git a/vue.config.js b/vue.config.js index 62da33e2..ffbacf94 100644 --- a/vue.config.js +++ b/vue.config.js @@ -67,16 +67,6 @@ module.exports = { type: 'image/png', purpose: 'maskable' }], - file_handlers: [ - { - action: '/', - accept: { - 'application/vnd.pptist': '.pptist', - '*/*': '.pptist', - 'application/vnd.openxmlformatsofficedocument.presentationml.presentation': '.pptx', - } - } - ], start_url: '.', display: 'standalone', background_color: '#000000',