From db881da6713ece7223e631a0ffe1a80a00104b7a Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 25 Jun 2025 12:56:59 +1000 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=BA=E6=99=BA=E8=83=BD=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重命名 updated.vue 为 UpdatePopup.vue - 新增 useUpdatePopup store 进行版本检测和存储管理 - 实现基于版本变化的智能弹窗显示逻辑 - 支持 Chrome storage API 和 localStorage 双重存储方案 - 添加弹窗关闭后的状态记录,避免重复显示 - 更新 App.vue 中的组件引用 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/App.vue | 4 +- .../{updated.vue => UpdatePopup.vue} | 34 ++- src/stores/useUpdatePopup.ts | 204 ++++++++++++++++++ 3 files changed, 231 insertions(+), 11 deletions(-) rename src/components/{updated.vue => UpdatePopup.vue} (64%) create mode 100644 src/stores/useUpdatePopup.ts diff --git a/src/App.vue b/src/App.vue index 81f3b01..927471c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ import LeftArrowIcon from './assets/icons/leftarrow.vue' import CorgIcon from './assets/icons/corg.vue' import { watch } from 'vue' -import Updated from './components/updated.vue' +import UpdatePopup from './components/UpdatePopup.vue' const presentPreferencePanel = ref(false) @@ -23,7 +23,7 @@ watch(() => presentPreferencePanel, (value) => {