| | |
| | | import { Modal, Message } from '@arco-design/web-vue'; |
| | | import message from '@arco-design/web-vue/es/message'; |
| | | import { resolveUnref } from '@vueuse/core'; |
| | | import { useUserStore } from '@/store'; |
| | | import { userModelState } from '@/store'; |
| | | |
| | | const userStore = useUserStore(); |
| | | const modelStore = userModelState(); |
| | | |
| | | const addPageModelVisible = defineModel('show'); |
| | | const loading = ref(false); |
| | |
| | | multiSelect: ['section one'], |
| | | treeSelect: '', |
| | | raptor: false, |
| | | addFomList: [], |
| | | addFomList: <any[]>[], |
| | | }); |
| | | const form_ref = ref(null); |
| | | const form_ref = ref(); |
| | | |
| | | const rules = { |
| | | model_type: [ |
| | |
| | | |
| | | const uploadAction = '/api/v1/llm/upload'; // 替换为你的上传API |
| | | const fileList = ref([]); |
| | | const imageUrls = ref([]); |
| | | const imageUrls = ref<any[]>([]); |
| | | const uploadUrl = ref([]); |
| | | const httpUrl = localStorage.getItem('httpUrl'); |
| | | const httpUrl = modelStore.hrefUrl; |
| | | |
| | | const updateFileList = (newFileList) => { |
| | | fileList.value = newFileList; |