diff --git a/package.json b/package.json index 841987c4e..7e09d6b05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.21", + "version": "2.14.22", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/store/appNotify.ts b/src/store/appNotify.ts index e3e0fc786..e3992cf55 100644 --- a/src/store/appNotify.ts +++ b/src/store/appNotify.ts @@ -17,11 +17,11 @@ export const useAppNotifyStore = defineStore('appNotify', { this.title = title; this.content = content || ''; this.type = type || 'primary'; - this.duration = duration || 800; + this.duration = duration || 2500; this.isVisible = true; setTimeout(() => { this.setVisible(false); - }, 1000); // 防止重复通知 持续时间过长 + }, this.duration); // 防止重复通知 持续时间过长 }, setVisible(isVisible: boolean) { this.isVisible = isVisible;