Uncaught (in promise) 的解決方法
請求後面加catch(err=>{})即可。
this.$axios.post(url,formData).then(res => {
})
.catch(err => {
})
請求後面加catch(err=>{})即可。
this.$axios.post(url,formData).then(res => {
})
.catch(err => {
})
普通vue input: @keyup.enter="onSubmit" element el-input: @keyup.enter.native="onSubmit"