|
@@ -1,18 +1,23 @@
|
|
|
<template>
|
|
|
- <div class="pptEditor"><Editor /></div>
|
|
|
+ <div class="pptEditor">
|
|
|
+ <Screen v-if="screening" />
|
|
|
+ <Editor v-else />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import Editor from "../Editor/index.vue"
|
|
|
+import Screen from "../Screen/index.vue"
|
|
|
import { onMounted } from "vue"
|
|
|
import { storeToRefs } from "pinia"
|
|
|
-import { useMainStore, useSnapshotStore } from "@/store"
|
|
|
+import { useScreenStore, useMainStore, useSnapshotStore } from "@/store"
|
|
|
import { LOCALSTORAGE_KEY_DISCARDED_DB } from "@/configs/storage"
|
|
|
import { deleteDiscardedDB } from "@/utils/database"
|
|
|
|
|
|
const mainStore = useMainStore()
|
|
|
const snapshotStore = useSnapshotStore()
|
|
|
const { databaseId } = storeToRefs(mainStore)
|
|
|
+const { screening } = storeToRefs(useScreenStore())
|
|
|
|
|
|
if (import.meta.env.MODE !== "development") {
|
|
|
window.onbeforeunload = () => false
|