Skip to content

Commit

Permalink
🐞 fix(首页白屏):
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzt50906 committed Jan 10, 2024
1 parent 7be3ea8 commit eaaa694
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/auto-update.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ function autoUpdate(duration = 2000) {
}, duration);
}

autoUpdate();
autoUpdate(30 * 1000);
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import "@/utils/auto-update";

const app = createApp(App);
app.use(router);
Expand Down
9 changes: 6 additions & 3 deletions src/pages/auto-update/index.vue
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>

0 comments on commit eaaa694

Please sign in to comment.