Skip to content

Commit

Permalink
chore: 调整通知横幅持续时长为 2.5s
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Dec 22, 2023
1 parent 9d7aa4e commit 7fee2ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.21",
"version": "2.14.22",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
4 changes: 2 additions & 2 deletions src/store/appNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fee2ca

Please sign in to comment.