浏览代码

参数命名

CzRger 1 月之前
父节点
当前提交
55ad568633
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/manage/knowledge/recall-config.vue

+ 3 - 3
src/views/manage/knowledge/recall-config.vue

@@ -196,7 +196,7 @@
                     <div class="mx-auto" />
                     <el-switch
                       size="small"
-                      v-model="state.config.showSource"
+                      v-model="state.config.isSource"
                       :active-value="1"
                       :inactive-value="0"
                     />
@@ -258,7 +258,7 @@ const state: any = reactive({
     isScore: 1,
     score: 0.5,
     noRecall: '',
-    showSource: 0,
+    isSource: 0,
   },
   optionsRerank: [],
 })
@@ -287,7 +287,7 @@ const reset = () => {
     score: 0.5,
     noRecall:
       '对不起,我已经学习的知识中不包含问题相关内容,暂时无法提供答案。如果你有相关的其他问题,我会尝试帮助你解答。',
-    showSource: 0,
+    isSource: 0,
   }
 }
 const onSubmit = () => {