fix(界面切换显示空白bug): 修复知识库管理时,切换到其它菜单,界面变空白的情况 (#31)
This commit is contained in:
parent
dbf6fe0f3b
commit
5a7eba5a29
|
@ -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 = {
|
||||
|
|
|
@ -54,6 +54,7 @@ export default {
|
|||
},
|
||||
beforeUnmount() {
|
||||
this.stopPolling()
|
||||
this.dialogVisible = false
|
||||
},
|
||||
methods: {
|
||||
resetProgress() {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue