mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-12-18 17:04:16 +08:00
chore: 项目依赖更新
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { h } from 'vue'
|
||||
import { Button, notification } from 'ant-design-vue'
|
||||
|
||||
let lastHashmap: any = null
|
||||
@@ -43,11 +44,15 @@ async function loop() {
|
||||
notification.info({
|
||||
message: '文档有更新',
|
||||
description: '请刷新页面以获取最新文档',
|
||||
btn: (
|
||||
<Button type="primary" onClick={() => window.location.reload()}>
|
||||
刷新页面
|
||||
</Button>
|
||||
)
|
||||
btn: () =>
|
||||
h(
|
||||
Button,
|
||||
{
|
||||
type: 'primary',
|
||||
onClick: () => window.location.reload()
|
||||
},
|
||||
'刷新页面'
|
||||
)
|
||||
})
|
||||
|
||||
localStorage.setItem('last-check-update', new Date().getTime().toString())
|
||||
@@ -1,5 +1,4 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||
|
||||
export default defineConfig(() => ({
|
||||
server: {
|
||||
@@ -9,6 +8,5 @@ export default defineConfig(() => ({
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [vueJsx()]
|
||||
}
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user