fix: 全局移除process.client、process.server #669

This commit is contained in:
Tim
2025-08-21 10:22:33 +08:00
parent b7f5d8485c
commit cfce4d7d1d
9 changed files with 29 additions and 28 deletions

View File

@@ -338,7 +338,7 @@ watch([selectedCategory, selectedTags], () => {
watch(selectedTopic, (val) => {
loadOptions()
selectedTopicCookie.value = val
if (process.client) localStorage.setItem('homeTab', val)
if (import.meta.client) localStorage.setItem('homeTab', val)
})
/** 选项首屏加载:服务端执行一次;客户端兜底 **/