|
@@ -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 => {
|