lchao 1 سال پیش
والد
کامیت
5627ee5064
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/asking/question/index.vue

+ 3 - 3
src/views/asking/question/index.vue

@@ -244,9 +244,7 @@
 </template>
 
 <script>
-import { listQuestion, getQuestion, delQuestion, addQuestion, updateQuestion, listType,through,addAnswer,delAnswer } from "@/api/asking/question";
-import {addType, updateType} from "@/api/asking/type";
-import { listQuestion, getQuestion, delQuestion, addQuestion, updateQuestion, listType,through,updateWhetherShow } from "@/api/asking/question";
+import { listQuestion, getQuestion, delQuestion, addQuestion, updateQuestion, listType,through,addAnswer,delAnswer,updateWhetherShow } from "@/api/asking/question";
 
 export default {
   name: "Question",
@@ -505,6 +503,8 @@ export default {
       delAnswer(id)
         .then(() => {
           this.form1.answerList.splice(index, 1);
+          // this.form1.answerList.push(this.newAnswerForm);
+          this.getList();
           this.$message.success('删除答案成功');
         })
         .catch(error => {