测试版
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
<UpdateChecker v-if="!isDev && isElectronEnv && !updateReady" @ready="updateReady = true" />
|
||||
|
||||
<template v-else>
|
||||
<!-- 滚动通知栏(登录页和工作台都显示) -->
|
||||
<NoticeBar />
|
||||
|
||||
<!-- 登录页面 -->
|
||||
<LoginPage v-if="currentPage === 'login'" @login-success="currentPage = 'browser'" class="animate-fadeIn" />
|
||||
|
||||
@@ -38,6 +41,8 @@ import ConfigPage from './pages/ConfigPage.vue'
|
||||
import UpdateChecker from './pages/UpdateChecker.vue'
|
||||
import WorkbenchLayout from './layout/WorkbenchLayout.vue'
|
||||
import UpdateNotification from './components/UpdateNotification.vue'
|
||||
import NoticeBar from './components/NoticeBar.vue'
|
||||
import { useNoticeStore } from './stores/noticeStore'
|
||||
|
||||
// Constants
|
||||
const USER_KEY = 'user_data'
|
||||
@@ -57,6 +62,10 @@ const automationLogs = ref([])
|
||||
const isElectronEnv = isElectron()
|
||||
const isDev = window.location.port === '5173'
|
||||
|
||||
// 公告通知
|
||||
const noticeStore = useNoticeStore()
|
||||
noticeStore.fetchNotices()
|
||||
|
||||
// Lifecycle
|
||||
onMounted(() => {
|
||||
// Set Title
|
||||
|
||||
Reference in New Issue
Block a user