工作223:状态管理里面取值
生活随笔
收集整理的這篇文章主要介紹了
工作223:状态管理里面取值
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
第一步
computed
第二步
取值
computed: {/*GY5 控制新增標題的顯隱*/fullTitle() {return this.title + "用戶";},DepartmentId(){return this.$store.state.department.id},Property(){return this.$store.state.department.property}},created() {/*第二步*/getAction("/department/attribute/"+this.DepartmentId).then(res => {//回顯數據this.property=res.data.propertyconsole.log(this.property)this.business_module=res.data.business_module;this.column=res.data.column;});},總結
以上是生活随笔為你收集整理的工作223:状态管理里面取值的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux下安装Adobe Reader
- 下一篇: 工作75::一直报404