Skip to content

Commit 924d82f

Browse files
committed
feat: 优化预览刷新相关逻辑
1 parent 713fe6a commit 924d82f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-front-end",
3-
"version": "2.16.37",
3+
"version": "2.16.38",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

src/components/NavBar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ const setSimpleMode = (isSimpleMode: boolean) => {
197197
};
198198
199199
const refresh = async () => {
200-
if (["/subs", "/sync", "/files"].includes(route.path)) {
200+
if (["/preview"].includes(route.path)) {
201+
window.location.reload();
202+
} else if (["/subs", "/sync", "/files"].includes(route.path)) {
201203
initStores(true, true, true);
202204
} else {
203205
showNotify({ title: i18n_global("globalNotify.refresh.rePwaing"), type: "primary" });

0 commit comments

Comments
 (0)