移除无关引入
This commit is contained in:
parent
1213cd58d2
commit
0fd83d179f
@ -110,7 +110,6 @@ import {
|
|||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import MessageInputComponent from '@/components/MessageInputComponent.vue'
|
import MessageInputComponent from '@/components/MessageInputComponent.vue'
|
||||||
import MessageComponent from '@/components/MessageComponent.vue'
|
import MessageComponent from '@/components/MessageComponent.vue'
|
||||||
import { useUserStore } from '@/stores/user'
|
|
||||||
import { chatApi } from '@/apis/auth_api'
|
import { chatApi } from '@/apis/auth_api'
|
||||||
|
|
||||||
// 新增props属性,允许父组件传入agentId
|
// 新增props属性,允许父组件传入agentId
|
||||||
@ -129,9 +128,6 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化userStore
|
|
||||||
const userStore = useUserStore();
|
|
||||||
|
|
||||||
// ==================== 状态管理 ====================
|
// ==================== 状态管理 ====================
|
||||||
|
|
||||||
// UI状态
|
// UI状态
|
||||||
|
|||||||
@ -91,13 +91,11 @@ import { Graph } from "@antv/g6";
|
|||||||
import { computed, onMounted, reactive, ref } from 'vue';
|
import { computed, onMounted, reactive, ref } from 'vue';
|
||||||
import { message, Button as AButton } from 'ant-design-vue';
|
import { message, Button as AButton } from 'ant-design-vue';
|
||||||
import { useConfigStore } from '@/stores/config';
|
import { useConfigStore } from '@/stores/config';
|
||||||
import { useUserStore } from '@/stores/user';
|
|
||||||
import { UploadOutlined, SyncOutlined } from '@ant-design/icons-vue';
|
import { UploadOutlined, SyncOutlined } from '@ant-design/icons-vue';
|
||||||
import HeaderComponent from '@/components/HeaderComponent.vue';
|
import HeaderComponent from '@/components/HeaderComponent.vue';
|
||||||
import { graphApi } from '@/apis/admin_api';
|
import { graphApi } from '@/apis/admin_api';
|
||||||
|
|
||||||
const configStore = useConfigStore();
|
const configStore = useConfigStore();
|
||||||
const userStore = useUserStore();
|
|
||||||
const cur_embed_model = computed(() => configStore.config?.embed_model_names?.[configStore.config?.embed_model]?.name || '');
|
const cur_embed_model = computed(() => configStore.config?.embed_model_names?.[configStore.config?.embed_model]?.name || '');
|
||||||
const modelMatched = computed(() => !graphInfo?.value?.embed_model_name || graphInfo.value.embed_model_name === cur_embed_model.value)
|
const modelMatched = computed(() => !graphInfo?.value?.embed_model_name || graphInfo.value.embed_model_name === cur_embed_model.value)
|
||||||
const disabled = computed(() => state.precessing || !modelMatched.value)
|
const disabled = computed(() => state.precessing || !modelMatched.value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user