|
@@ -368,6 +368,7 @@ import {
|
|
|
aiQuestionConfirmApi,
|
|
|
classifyQuestionPageListApi,
|
|
|
getAiNums,
|
|
|
+ checkOptionRepeatApi,
|
|
|
} from "../api";
|
|
|
import QuestionStatisticsDialog from "../components/QuestionStatisticsDialog.vue";
|
|
|
import QuestionSafetySetDialog from "../components/QuestionSafetySetDialog.vue";
|
|
@@ -379,7 +380,7 @@ import FolderQuestionManageDialog from "../components/FolderQuestionManageDialog
|
|
|
import PropertyTreeSelect from "../components/PropertyTreeSelect.vue";
|
|
|
import QuestionImportEdit from "../components/QuestionImportEdit.vue";
|
|
|
import GptQuestionDialog from "../components/GptQuestionDialog.vue";
|
|
|
-import { mapActions, mapGetters } from "vuex";
|
|
|
+import { mapActions, mapGetters, mapMutations } from "vuex";
|
|
|
import { USER_SIGNIN } from "../../portal/store/user";
|
|
|
import QuestionFolder from "@/modules/question/components/QuestionFolder.vue";
|
|
|
|
|
@@ -443,9 +444,12 @@ export default {
|
|
|
this.$refs.QuestionFolder.selectDefaultNode();
|
|
|
|
|
|
this.checkGptEnable();
|
|
|
+ this.checkRepeatEnable();
|
|
|
this.toPage(1);
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations(["setCheckOptionRepeat"]),
|
|
|
+
|
|
|
folderFilterSelected(folder) {
|
|
|
console.log("left tree choose folder:", folder);
|
|
|
if (!folder) return;
|
|
@@ -461,6 +465,10 @@ export default {
|
|
|
this.toPage(1);
|
|
|
},
|
|
|
...mapActions([USER_SIGNIN]),
|
|
|
+ async checkRepeatEnable() {
|
|
|
+ let res = await checkOptionRepeatApi();
|
|
|
+ this.setCheckOptionRepeat(res.data);
|
|
|
+ },
|
|
|
async checkGptEnable() {
|
|
|
const res = await checkGptQuestionEnableApi();
|
|
|
// this.gptQuestionEnable = res.data;
|