测试版

This commit is contained in:
2026-02-11 14:49:18 +08:00
parent bef5c2f437
commit 92780ef52e
6 changed files with 348 additions and 0 deletions

View File

@@ -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