From ac0a6c0e77860efb406f2c81c989361d2929124c Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期一, 12 八月 2024 10:43:10 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web
---
src/views/dmx/knowledgeLib/config.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/dmx/knowledgeLib/config.vue b/src/views/dmx/knowledgeLib/config.vue
index 2ef615a..5e6af51 100644
--- a/src/views/dmx/knowledgeLib/config.vue
+++ b/src/views/dmx/knowledgeLib/config.vue
@@ -1,5 +1,5 @@
<template>
- <div class="main-container">
+ <div ref="scrollContainer" class="main-container">
<div style="position: absolute;top: 0;left: 0;width: 100%;padding: 0 20px">
<h4 style="margin-bottom: 10px"></h4>
<div style="color: #666666;">鍦ㄨ繖閲屾洿鏂版偍鐨勭煡璇嗗簱璇︾粏淇℃伅锛屽挨鍏舵槸瑙f瀽鏂规硶銆�</div>
@@ -18,7 +18,7 @@
v-if="avatarShow"
:action="uploadAction"
:limit="1"
- :url="form.avatar"
+ :url="httpUrl + form.avatar"
@update:fileList="updateFileList"
@success="handleSuccess"
></Upload>
@@ -160,7 +160,7 @@
import message from "@arco-design/web-vue/es/message";
import useLoading from "@/hooks/loading";
const { loading,setLoading } = useLoading(true);
-
+const scrollContainer = ref();
const props = defineProps(['kbtenantInfo'])
const emit = defineEmits(['cancleConfig','saveConfig'])
// 瑙f瀽鏂规硶鍒楄〃
@@ -230,6 +230,7 @@
const uploadAction = '/api/v1/llm/upload'; // 鏇挎崲涓轰綘鐨勪笂浼燗PI
const fileList = ref([]);
const imageUrls = ref([]);
+const httpUrl = localStorage.getItem('httpUrl');
const updateFileList = (newFileList) => {
fileList.value = newFileList;
@@ -368,6 +369,8 @@
setTimeout(() => {
avatarShow.value = true;
},100);
+ scrollContainer.value.scrollTop = 0;
+
}
defineExpose({
@@ -402,7 +405,7 @@
justify-content: space-between;
height: 100%;
overflow: auto;
- //background: #626aea;
+ border-radius: 8px;
background: var(--color-bg-2);
padding-top: 80px;
--
Gitblit v1.8.0