fix(界面切换显示空白bug): 修复知识库管理时,切换到其它菜单,界面变空白的情况 (#31)

This commit is contained in:
zstar 2025-04-16 22:22:28 +08:00 committed by GitHub
parent dbf6fe0f3b
commit 5a7eba5a29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 286 additions and 283 deletions

View File

@ -23,7 +23,7 @@ def is_running_in_docker():
# 根据运行环境选择合适的主机地址
DB_HOST = 'host.docker.internal' if is_running_in_docker() else 'localhost'
MINIO_HOST = 'host.docker.internal' if is_running_in_docker() else 'localhost'
ES_HOST = 'host.docker.internal' if is_running_in_docker() else 'localhost' # 添加 ES 主机地址
ES_HOST = 'host.docker.internal' if is_running_in_docker() else 'localhost'
# 数据库连接配置
DB_CONFIG = {

View File

@ -54,6 +54,7 @@ export default {
},
beforeUnmount() {
this.stopPolling()
this.dialogVisible = false
},
methods: {
resetProgress() {

View File

@ -618,6 +618,7 @@ onActivated(() => {
</script>
<template>
<div>
<div class="app-container">
<el-card v-loading="loading" shadow="never" class="search-wrapper">
<el-form ref="searchFormRef" :inline="true" :model="searchData">
@ -929,6 +930,7 @@ onActivated(() => {
@parse-complete="handleParseComplete"
@parse-failed="handleParseFailed"
/>
</div>
</template>
<style lang="scss" scoped>

View File

@ -118,14 +118,14 @@ export const constantRoutes: RouteRecordRaw[] = [
]
},
{
path: "/kb",
path: "/knowledgebase",
component: Layouts,
redirect: "/kb/index",
redirect: "/knowledgebase/index",
children: [
{
path: "index",
component: () => import("@/pages/knowledgebase/index.vue"),
name: "KB",
name: "KnowledgeBase",
meta: {
title: "知识库管理",
svgIcon: "kb",