chore(build): 清理过时的静态资源文件
- 删除 backend/static/admin 目录下的 404 样式文件 - 删除 static/admin/admin 目录下的 404 样式文件 - 删除 static/admin/chat 目录下的 404 样式文件 - 删除各个静态目录下过时的 500 错误页面 JS 文件 - 移除多个 channel 相关的 JS 模块文件 - 清理 admin 和 chat 相关的静态资源文件v3.2
parent
4522cd2abb
commit
bbcdaa7ab2
|
|
@ -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
|
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/
|
||||||
|
|
@ -6,7 +6,7 @@ import { type Ref } from 'vue'
|
||||||
* 获取系统配置
|
* 获取系统配置
|
||||||
*/
|
*/
|
||||||
const getSystemConfig: (loading?: Ref<boolean>) => Promise<Result<any>> = (loading) => {
|
const getSystemConfig: (loading?: Ref<boolean>) => Promise<Result<any>> = (loading) => {
|
||||||
return get('/config', undefined, loading)
|
return get('/system_manage/config', undefined, loading)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mindmap-container">
|
<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
|
<iframe
|
||||||
:src="mindmapUrl"
|
:src="mindmapUrl"
|
||||||
style="width: 100%; height: 100%; border: none;"
|
style="width: 100%; height: 100%; border: none;"
|
||||||
|
|
@ -18,6 +24,7 @@ const mindmapUrl = ref<string>('')
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
loading.value = true
|
||||||
systemConfigApi.getSystemConfig(loading).then((res: any) => {
|
systemConfigApi.getSystemConfig(loading).then((res: any) => {
|
||||||
if (res.data && res.data.mindmap_url) {
|
if (res.data && res.data.mindmap_url) {
|
||||||
mindmapUrl.value = res.data.mindmap_url
|
mindmapUrl.value = res.data.mindmap_url
|
||||||
|
|
@ -32,10 +39,24 @@ onMounted(() => {
|
||||||
.mindmap-container {
|
.mindmap-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mindmap-content {
|
.mindmap-content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading, .error {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
font-size: 16px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
color: #f56c6c;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue