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'
|
DB_HOST = 'host.docker.internal' if is_running_in_docker() else 'localhost'
|
||||||
MINIO_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 = {
|
DB_CONFIG = {
|
||||||
|
|
|
@ -54,6 +54,7 @@ export default {
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
this.stopPolling()
|
this.stopPolling()
|
||||||
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
resetProgress() {
|
resetProgress() {
|
||||||
|
|
|
@ -618,6 +618,7 @@ onActivated(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card v-loading="loading" shadow="never" class="search-wrapper">
|
<el-card v-loading="loading" shadow="never" class="search-wrapper">
|
||||||
<el-form ref="searchFormRef" :inline="true" :model="searchData">
|
<el-form ref="searchFormRef" :inline="true" :model="searchData">
|
||||||
|
@ -929,6 +930,7 @@ onActivated(() => {
|
||||||
@parse-complete="handleParseComplete"
|
@parse-complete="handleParseComplete"
|
||||||
@parse-failed="handleParseFailed"
|
@parse-failed="handleParseFailed"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -118,14 +118,14 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/kb",
|
path: "/knowledgebase",
|
||||||
component: Layouts,
|
component: Layouts,
|
||||||
redirect: "/kb/index",
|
redirect: "/knowledgebase/index",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "index",
|
path: "index",
|
||||||
component: () => import("@/pages/knowledgebase/index.vue"),
|
component: () => import("@/pages/knowledgebase/index.vue"),
|
||||||
name: "KB",
|
name: "KnowledgeBase",
|
||||||
meta: {
|
meta: {
|
||||||
title: "知识库管理",
|
title: "知识库管理",
|
||||||
svgIcon: "kb",
|
svgIcon: "kb",
|
||||||
|
|
Loading…
Reference in New Issue