前端工作小结81-状态管理里面取值

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.property
      console.log(this.property)
      this.business_module=res.data.business_module;
      this.column=res.data.column;
    });
  },

 

posted @ 2022-09-10 19:41  前端导师歌谣  阅读(16)  评论(0)    收藏  举报