| | |
| | | } |
| | | config.headers.Authorization = `${authorization}`; |
| | | } |
| | | // config.headers.Authorization = 'ImI1ZjBiMTE4NGE5MDExZWZhODMxMDI0MmFjMTIwMDA2Ig.ZqJeng.mxAf4MaEIp_v6jiQqEe3B13xaNE'; |
| | | return config; |
| | | }, |
| | | (error) => { |
| | |
| | | okText: 'Re-Login', |
| | | async onOk() { |
| | | const userStore = useUserStore(); |
| | | |
| | | await userStore.logout(); |
| | | window.location.reload(); |
| | | }, |
| | |
| | | ); |
| | | |
| | | onBeforeMount(()=>{ |
| | | knowledgeData() |
| | | |
| | | }) |
| | | onMounted(()=>{ |
| | | |
| | | knowledgeData() |
| | | }) |
| | | |
| | | </script> |
| | |
| | | import { onMounted, onBeforeMount, reactive, ref, watch } from "vue"; |
| | | import { Message } from '@arco-design/web-vue'; |
| | | import { kbretrievalTest, queryModelList } from "@/api/kbList"; |
| | | import { usePinia } from "../../../store"; |
| | | const store = usePinia(); |
| | | // import { usePinia } from "../../../store"; |
| | | // const store = usePinia(); |
| | | // const props = defineProps({ |
| | | // kbobj: { |
| | | // type: Object, |
| | |
| | | const formRef = ref(null); |
| | | const modelList = ref({}); |
| | | let form = reactive({ |
| | | kb_id: store.kbobj.id, |
| | | // kb_id: store.kbobj.id, |
| | | page: 1, |
| | | question: '', |
| | | rerank_id: '', |