handleAdd 方法最后添加一個(gè)this.resetForm()重置表單,避免點(diǎn)擊編輯取消后再點(diǎn)擊添加的時(shí)候表單中有上一次操作的內(nèi)容
handleAdd() {
this.dialogTitle = '添加期刊'
this.showDialog = true
this.getContentOptions()
this.resetForm()
},
handleAdd() {
this.dialogTitle = '添加期刊'
this.showDialog = true
this.getContentOptions()
this.resetForm()
},
2023-12-05
調(diào)用 confirmAdd() 方法關(guān)閉頁(yè)面后需要重置一下表單吧
resetForm() {
this.$refs.form.resetFields()
},
resetForm() {
this.$refs.form.resetFields()
},
2023-12-05
最新回答 / 月光皎潔
已解決,secure.js下dialectOptions:{dateStrings: true,typeCast:true}里的dateStrings,少寫(xiě)了個(gè)s
2023-08-11
最新回答 / 月光皎潔
vue棄用之前的寫(xiě)法了改成這樣<...code...><template?v-slot="scope">? ? ? ? ? ? {{type[scope.row.type]}}</template>
2023-08-03
Error: No Sequelize instance passed
這里是Model.init({},{})(這是正確語(yǔ)法) 語(yǔ)法錯(cuò)誤
老師的webstorm 有語(yǔ)法提示,不是寫(xiě)的代碼 在init中添加了attibutes 和 options
變成了Model.init(attributes:{},options:{}) (這是錯(cuò)誤) 這語(yǔ)法提示真坑啊 浪費(fèi)好久時(shí)間
這里是Model.init({},{})(這是正確語(yǔ)法) 語(yǔ)法錯(cuò)誤
老師的webstorm 有語(yǔ)法提示,不是寫(xiě)的代碼 在init中添加了attibutes 和 options
變成了Model.init(attributes:{},options:{}) (這是錯(cuò)誤) 這語(yǔ)法提示真坑啊 浪費(fèi)好久時(shí)間
2023-08-01