发布:v0.3.3 版本历史模块 + 域名迁移 + 站点版本信息修正
- 版本号更新至 0.3.3(version.go/wails.json/README.md) - 更新检查域名迁移 img.1216.top → c.1216.top - 新增 views/version 版本历史 Tab 页面(时间线 UI) - 设置面板新增版本历史入口按钮 - CHANGELOG 补全 0.3.3 全部 17 个提交记录 - 站点 HTML 修正(删除错误 v0.4.0,v0.3.3 为最新) - 生成 last-version.json / versions.json 发布数据
This commit is contained in:
@@ -67,8 +67,20 @@
|
||||
v-model="showSettings"
|
||||
:config="configStore.appConfig"
|
||||
@save="handleSaveConfig"
|
||||
@open-version-history="showVersionHistory = true"
|
||||
/>
|
||||
|
||||
<!-- 版本历史抽屉 -->
|
||||
<a-drawer
|
||||
v-model:visible="showVersionHistory"
|
||||
:width="720"
|
||||
:footer="false"
|
||||
:unmount-on-close="false"
|
||||
title="版本历史"
|
||||
>
|
||||
<VersionHistory />
|
||||
</a-drawer>
|
||||
|
||||
<!-- 升级提示弹窗 -->
|
||||
<UpdateNotification
|
||||
v-model="updateStore.showUpdate"
|
||||
@@ -83,6 +95,7 @@ import {computed, onMounted, onUnmounted, ref, watch} from 'vue'
|
||||
import {IconSettings, IconPushpin} from '@arco-design/web-vue/es/icon'
|
||||
import MarkdownEditor from './views/markdown-editor/index.vue'
|
||||
import DbCli from './views/db-cli/index.vue'
|
||||
import VersionHistory from './views/version/index.vue'
|
||||
import ThemeToggle from './components/ThemeToggle.vue'
|
||||
import FileSystem from './components/FileSystem/index.vue'
|
||||
import SettingsPanel from './components/SettingsPanel.vue'
|
||||
@@ -97,6 +110,7 @@ const ACTIVE_TAB_STORAGE_KEY = 'app-active-tab'
|
||||
const savedTab = localStorage.getItem(ACTIVE_TAB_STORAGE_KEY)
|
||||
const activeTab = ref((savedTab === 'user' ? 'file-system' : savedTab) || 'file-system')
|
||||
const showSettings = ref(false)
|
||||
const showVersionHistory = ref(false)
|
||||
const isMaximized = ref(false)
|
||||
const isPinned = ref(false)
|
||||
|
||||
@@ -219,10 +233,9 @@ watch(activeTab, (newTab) => {
|
||||
// 保存到 localStorage
|
||||
localStorage.setItem(ACTIVE_TAB_STORAGE_KEY, newTab)
|
||||
|
||||
// 检查 Tab 是否在可见列表中
|
||||
// 检查一级 Tab 是否在可见列表中
|
||||
const isVisible = appConfig.value.visibleTabs.includes(newTab)
|
||||
if (!isVisible && appConfig.value.visibleTabs.length > 0 && newTab !== appConfig.value.defaultTab) {
|
||||
// 切换到默认 Tab(避免重复触发)
|
||||
activeTab.value = appConfig.value.defaultTab
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user