解决生产无法关闭PPTIST页面问题

This commit is contained in:
朱浩 2024-12-12 11:17:12 +08:00
parent 9c7aeb1a27
commit 894ed269ce
2 changed files with 3 additions and 3 deletions

View File

@ -22,4 +22,4 @@ VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/'
VITE_APP_WS_URL = 'wss://file.ysaix.com:7868' VITE_APP_WS_URL = 'wss://file.ysaix.com:7868'
# 是否显示开发工具 # 是否显示开发工具
VITE_SHOW_DEV_TOOLS = 'false' VITE_SHOW_DEV_TOOLS = 'true'

View File

@ -39,8 +39,8 @@ const slidesStore = useSlidesStore()
const { databaseId } = storeToRefs(mainStore) const { databaseId } = storeToRefs(mainStore)
const { screening } = storeToRefs(useScreenStore()) const { screening } = storeToRefs(useScreenStore())
if (import.meta.env.MODE !== 'development') { if (import.meta.env.MODE === 'development') {
window.onbeforeunload = () => false // window.onbeforeunload = () => false
} }
onMounted(async () => { onMounted(async () => {