Parcourir la source

fix: 修改bug

zhangxiao il y a 2 ans
Parent
commit
cb11d7ae55
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/views/dmx/knowledgeLib/tool.vue

+ 2 - 2
src/views/dmx/knowledgeLib/tool.vue

@@ -526,7 +526,7 @@
   // 自定义加载提示文本
   const tip = '加载中,请稍候...';
   //获取列表
-  const getList = () => {
+  const getList = async () => {
     let params = {
       doc_id: props.item.id,
       keywords: form.keywords,
@@ -536,7 +536,7 @@
     if (available_int.value !== '') {
       params.available_int = available_int.value;
     }
-    queryChunkList(params).then((res) => {
+    await queryChunkList(params).then((res) => {
       if (res.code == 0) {
         listData.value = res.data.chunks;
         isLoading.value = false;