Commit b845b7c3 authored by 刘阳's avatar 刘阳

fix: 提示

parent 3977b8ff
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-button @click="sendAnswer" <el-button @click="sendAnswer"
type="primary" type="primary"
class="itm" class="itm"
:disabled="false">提交 :disabled="disabled">提交
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
}, },
(data) => { (data) => {
console.log('回执', data); console.log('回执', data);
this.$alert('提交成功!')
this.disabled = true; this.disabled = true;
} }
); );
...@@ -129,9 +130,9 @@ export default { ...@@ -129,9 +130,9 @@ export default {
// "payload":{"type":0,"title":"选择题"}}] // "payload":{"type":0,"title":"选择题"}}]
if (msg && msg.from && msg.from.indexOf('teacher') > -1 && msg.payload.type > -1) { if (msg && msg.from && msg.from.indexOf('teacher') > -1 && msg.payload.type > -1) {
this.questionType = msg.payload.type this.questionType = msg.payload.type
if (this.questionType === 3) { // if (this.questionType === 3) {
this.disabled = false this.disabled = false
} // }
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment