-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liuzt50906
committed
Jan 10, 2024
1 parent
7be3ea8
commit eaaa694
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,4 @@ function autoUpdate(duration = 2000) { | |
}, duration); | ||
} | ||
|
||
autoUpdate(); | ||
autoUpdate(30 * 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
<template> | ||
<div>已开启页面更新监听,具体查看 console 面板</div> | ||
<div>已开启页面更新监听,具体查看 console 面板</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
export default { | ||
name: "AutoUpdate", | ||
name: "AutoUpdate", | ||
}; | ||
</script> | ||
<script setup lang="ts"></script> | ||
<script setup lang="ts"> | ||
import "@/utils/auto-update"; | ||
</script> | ||
|
||
<style scoped></style> | ||
|