chore: 项目依赖更新

This commit is contained in:
ZiuChen
2025-08-01 23:47:17 +08:00
parent 894f114566
commit 14435f3e6a
6 changed files with 975 additions and 1073 deletions

View File

@@ -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())

View File

@@ -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()]
}
}))