From 9cf32f84934cf13dba77e20fdddf8703e11b0c62 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期二, 13 八月 2024 20:04:20 +0800
Subject: [PATCH] agent会话开发
---
src/views/dmx/model/index.vue | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/views/dmx/model/index.vue b/src/views/dmx/model/index.vue
index 2c1fed9..bf2602d 100644
--- a/src/views/dmx/model/index.vue
+++ b/src/views/dmx/model/index.vue
@@ -42,7 +42,7 @@
width: '100%',
}"
alt="鏆傛棤鍥剧墖"
- :src="httpUrl + item.logo"
+ :src="item.logo ? httpUrl + item.logo : pdfImg"
/>
</div>
<a-card :bordered="false" hoverable>
@@ -83,7 +83,7 @@
width: '100%',
}"
alt="鏆傛棤鍥剧墖"
- :src="httpUrl + list.logo"
+ :src="list.logo ? httpUrl + list.logo : pdfImg"
/>
<!-- src="https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/a20012a2d4d5b9db43dfc6a01fe508c0.png~tplv-uwbnlip3yd-webp.webp" -->
</div>
@@ -174,9 +174,11 @@
deleteLlmFactory,
} from '@/api/model';
import { Modal, Message } from '@arco-design/web-vue';
- import { useUserStore } from '@/store';
+ import { userModelState } from '@/store';
- const userStore = useUserStore();
+ import pdfImg from '@/assets/images/icon-chart.png';
+
+ const modelStore = userModelState();
let count = 5;
const activeKey = ref(1);
const data = ref([
@@ -211,7 +213,7 @@
tabKey.value = val;
};
- const httpUrl = localStorage.getItem('httpUrl');
+ const httpUrl = modelStore.hrefUrl;
const show = ref(false);
const tabShow = ref(false);
const title = ref('娣诲姞妯″紡');
@@ -222,7 +224,7 @@
title.value = '娣诲姞妯″瀷';
editList.value.llm_factory = tabKey.value;
};
- const editList = ref({ llm_factory: '' });
+ const editList = ref<any>({ llm_factory: '' });
//澧炲姞妯″瀷瀛愮被
const handleAddModel = () => {
modelType.value = 2;
@@ -282,7 +284,7 @@
}
if (key !== 'key') {
const res = await deleteLlmFactory(key);
- if (res.code == 200) {
+ if ((res as any).code == 200) {
Reflect.deleteProperty(tabData.value, key);
queryModel();
}
@@ -290,7 +292,7 @@
};
const visible = ref(false);
- const formRef = ref(null);
+ const formRef = ref();
const form = reactive({
size: 'medium',
@@ -436,10 +438,13 @@
}
.card_content {
.card_wrap_box_img {
- min-height: 200px;
+ // min-height: 200px;
height: 200px;
+ width: 100%;
img {
- max-height: 190px;
+ width: 100%; /* 鎴栬�呭叾浠栧浐瀹氬搴� */
+ height: 100%; /* 鎴栬�呭叾浠栧浐瀹氶珮搴� */
+ object-fit: cover; /* 涓嶄細鍙樺舰锛屼絾鍙兘瑁佸壀鍥剧墖 */
}
}
.card_wrap_box {
--
Gitblit v1.8.0