mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-12-20 09:45:38 +08:00
chore: 调整代码执行细节
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user