修复知识图谱文件上传 BUG
This commit is contained in:
parent
95b8b64170
commit
79d4fc79b0
@ -73,6 +73,7 @@
|
||||
:max-count="1"
|
||||
:disabled="disabled"
|
||||
action="/api/data/upload"
|
||||
:headers="getAuthHeaders()"
|
||||
@change="handleFileUpload"
|
||||
@drop="handleDrop"
|
||||
>
|
||||
@ -94,6 +95,7 @@ import { useConfigStore } from '@/stores/config';
|
||||
import { UploadOutlined, SyncOutlined } from '@ant-design/icons-vue';
|
||||
import HeaderComponent from '@/components/HeaderComponent.vue';
|
||||
import { graphApi } from '@/apis/admin_api';
|
||||
import { useUserStore } from '@/stores/user';
|
||||
|
||||
const configStore = useConfigStore();
|
||||
const cur_embed_model = computed(() => configStore.config?.embed_model_names?.[configStore.config?.embed_model]?.name || '');
|
||||
@ -384,6 +386,11 @@ const indexNodes = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const getAuthHeaders = () => {
|
||||
const userStore = useUserStore();
|
||||
return userStore.getAuthHeaders();
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user