diff --git a/components/kl-search/index.vue b/components/kl-search/index.vue index 86bedb1..fdab333 100644 --- a/components/kl-search/index.vue +++ b/components/kl-search/index.vue @@ -116,16 +116,17 @@ } const handleHotItem = (item: ProjectDrawStatisticAppRespVO) => { - const normal = { id: '0', name: '图纸库', isChildren: false } - const level = item.pairs?.filter(Boolean).map((item) => ({ id: item?.id, name: item?.name, isChildren: false })) || [] - level.unshift(normal) - if (item.type === 1) { - navigateTo(`/drawe?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) - } else if (item.type === 2) { - navigateTo(`/text?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) - } else if (item.type === 3) { - navigateTo(`/model?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) - } + // const normal = { id: '0', name: '图纸库', isChildren: false } + // const level = item.pairs?.filter(Boolean).map((item) => ({ id: item?.id, name: item?.name, isChildren: false })) || [] + // level.unshift(normal) + // if (item.type === 1) { + // navigateTo(`/drawe?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) + // } else if (item.type === 2) { + // navigateTo(`/text?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) + // } else if (item.type === 3) { + // navigateTo(`/model?level=${JSON.stringify(level)}&keywords=${item.title || ''}`,) + // } + navigateTo(`/drawe/${item.projectType}/1/12/-1`) } onMounted(() => { diff --git a/pages/home/components/LoginForm.vue b/pages/home/components/LoginForm.vue index b00f447..56bf56a 100644 --- a/pages/home/components/LoginForm.vue +++ b/pages/home/components/LoginForm.vue @@ -141,7 +141,7 @@ } watchEffect(() => { - if (isLogin.value) { + if (isLogin.value && import.meta.client) { fetchUserStatistics() } })