Commit 383510c8 by 冷斌

fix bug

parent d2560b5f
......@@ -29,7 +29,7 @@
<!-- 提交 -->
<div class="btnBox">
<button type="button" :style="isBk" @click="submit" :disabled="!isSub">
<button type="button" :style="isBk" @click="submit" :disabled="isSub">
提交
</button>
</div>
......@@ -43,12 +43,11 @@
for (let i in this.form) {
if (this.form[i] === '') {
status = true;
this.isBk='background: #FC7583;';
break;
}
}
this.isSub = status;
this.isBk='background: #FF9FBA;';
this.isBk= status ? 'background: #FF9FBA;' : 'background: #FC7583;';
},
data: {
form:{
......@@ -59,7 +58,7 @@
content: '',
thumb: '',
},
isSub: false,
isSub: true,
isBk: 'background: #FF9FBA;'
},
methods: {
......
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