diff --git a/.env.production b/.env.production index 0919367..b7f30f3 100644 --- a/.env.production +++ b/.env.production @@ -22,4 +22,4 @@ VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/' VITE_APP_WS_URL = 'wss://file.ysaix.com:7868' # 是否显示开发工具 -VITE_SHOW_DEV_TOOLS = 'false' +VITE_SHOW_DEV_TOOLS = 'true' diff --git a/src/renderer/src/AixPPTist/src/App.vue b/src/renderer/src/AixPPTist/src/App.vue index 20fca42..7621b9f 100644 --- a/src/renderer/src/AixPPTist/src/App.vue +++ b/src/renderer/src/AixPPTist/src/App.vue @@ -39,8 +39,8 @@ const slidesStore = useSlidesStore() const { databaseId } = storeToRefs(mainStore) const { screening } = storeToRefs(useScreenStore()) -if (import.meta.env.MODE !== 'development') { - window.onbeforeunload = () => false +if (import.meta.env.MODE === 'development') { + // window.onbeforeunload = () => false } onMounted(async () => {