|
|
@@ -130,7 +130,13 @@ export default {
|
|
|
if (this.checkFormCompletion()) {
|
|
|
let questionVO = this.formatQuestionVO2backend();
|
|
|
let res = await this.$api.createQuestion(questionVO);
|
|
|
- console.log(res);
|
|
|
+ if (res.status === 200) {
|
|
|
+ this.$message({
|
|
|
+ message: '新建题目成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -234,7 +240,7 @@ export default {
|
|
|
|
|
|
initSingleQuestionCreator() {
|
|
|
this.form = {
|
|
|
- content: "",
|
|
|
+ stem: "",
|
|
|
type: 1,
|
|
|
options: [
|
|
|
{
|