chore: 调整代码执行细节

This commit is contained in:
ZiuChen
2024-04-02 14:24:17 +08:00
parent f0451e0a72
commit a89c4a8d31
5 changed files with 22 additions and 25 deletions

View File

@@ -9,6 +9,6 @@ export function customComponents(app: App) {
const cpns = [Title, ImgSlider]
for (const c of cpns) {
app.component(c.__name, c)
app.component(c.__name!, c)
}
}

View File

@@ -7,8 +7,8 @@ let lastHashmap: any = null
* 如果有更新则弹出提醒刷新页面
*/
export function refresh() {
// SSR or SSG 模式不需要检查更新
if (import.meta.env.SSR) {
// SSR or DEV 下不需要检查更新
if (import.meta.env.SSR || import.meta.env.DEV) {
return
}