chore(build): 清理过时的静态资源文件

- 删除 backend/static/admin 目录下的 404 样式文件
- 删除 static/admin/admin 目录下的 404 样式文件
- 删除 static/admin/chat 目录下的 404 样式文件
- 删除各个静态目录下过时的 500 错误页面 JS 文件
- 移除多个 channel 相关的 JS 模块文件
- 清理 admin 和 chat 相关的静态资源文件
v3.2
tanlianwang 2026-03-20 11:06:02 +08:00
parent 4522cd2abb
commit bbcdaa7ab2
3 changed files with 24 additions and 3 deletions

View File

@ -44,4 +44,4 @@ SESSION_TIMEOUT: 28800
SANDBOX_PYTHON_PACKAGE_PATHS: /opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages
# 思维导图服务配置
MINDMAP_URL: http://10.100.52.76:3000/
MINDMAP_URL: http://10.100.52.43:9898/

View File

@ -6,7 +6,7 @@ import { type Ref } from 'vue'
*
*/
const getSystemConfig: (loading?: Ref<boolean>) => Promise<Result<any>> = (loading) => {
return get('/config', undefined, loading)
return get('/system_manage/config', undefined, loading)
}
export default {

View File

@ -1,6 +1,12 @@
<template>
<div class="mindmap-container">
<div class="mindmap-content">
<div v-if="loading" class="loading">
加载中...
</div>
<div v-else-if="!mindmapUrl" class="error">
思维导图配置未设置请联系管理员
</div>
<div v-else class="mindmap-content">
<iframe
:src="mindmapUrl"
style="width: 100%; height: 100%; border: none;"
@ -18,6 +24,7 @@ const mindmapUrl = ref<string>('')
const loading = ref(false)
onMounted(() => {
loading.value = true
systemConfigApi.getSystemConfig(loading).then((res: any) => {
if (res.data && res.data.mindmap_url) {
mindmapUrl.value = res.data.mindmap_url
@ -32,10 +39,24 @@ onMounted(() => {
.mindmap-container {
height: 100%;
overflow: hidden;
position: relative;
}
.mindmap-content {
height: 100%;
overflow: hidden;
}
.loading, .error {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
color: #666;
}
.error {
color: #f56c6c;
}
</style>