zhangxiao
2024-08-09 7d0b7f478d812933b3dc3721095f7d5d8df44238
src/views/dmx/model/components/addTableName.vue
@@ -70,6 +70,8 @@
  import { Message } from '@arco-design/web-vue';
  const addTabVisible = defineModel('tabShow');
  const httpUrl = localStorage.getItem('httpUrl');
  const loading = ref(false);
  const props = defineProps({
    task_id: {
@@ -123,7 +125,7 @@
            tags: form.tags,
            api_base: form.api_base,
            // all_params: all_params,
            logo: imageUrls.value[0],
            logo: uploadUrl.value[0],
          })
            .then((resData) => {
              if ((resData as any).code === 200) {
@@ -138,7 +140,7 @@
            tags: form.tags,
            api_base: form.api_base,
            // all_params: all_params,
            logo: imageUrls.value[0],
            logo: uploadUrl.value[0],
          })
            .then((resData) => {
              if ((resData as any).code === 200) {
@@ -166,13 +168,18 @@
  const uploadAction = '/api/v1/llm/upload'; // 替换为你的上传API
  const fileList = ref([]);
  const imageUrls = ref([]);
  const uploadUrl = ref([]);
  const updateFileList = (newFileList) => {
    fileList.value = newFileList;
  };
  const handleSuccess = (urls) => {
    imageUrls.value = urls; // 拿到上传的图片地址
    console.log(urls, 77777);
    uploadUrl.value = urls;
    const urlsArr = urls.map((url) => {
      return httpUrl + url;
    });
    imageUrls.value = urlsArr; // 拿到上传的图片地址
  };
  const handleOpened = (el) => {