工作按钮(216):点击按钮报错--bug修复--直接写接口里面
生活随笔
收集整理的這篇文章主要介紹了
工作按钮(216):点击按钮报错--bug修复--直接写接口里面
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
this.title = "編輯";getAction(path.join(this.url.query, id)).then(res => {this.form = res.data;}).catch(err => {this.form = JSON.parse(JSON.stringify(this.defaultForm));this.$message.warning("獲取數據失敗!");}).finally(() => {console.log("我是type"+this.form.content_type)if(this.form.content_type==2){this.attr=1}else{this.attr=2}console.log("我是attr"+this.attr)this.loading = false;});},
直接在調用接口改變狀態
?
總結
以上是生活随笔為你收集整理的工作按钮(216):点击按钮报错--bug修复--直接写接口里面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 100天python、github_Gi
- 下一篇: VB 串口编程 开发心得