From 7fee2ca41d0eb36646a2f6468044734fdefb20a2 Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 22 Dec 2023 14:12:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=A8=AA=E5=B9=85=E6=8C=81=E7=BB=AD=E6=97=B6=E9=95=BF=E4=B8=BA?= =?UTF-8?q?=202.5s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/store/appNotify.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;