Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

micro-customization-system / system

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • system
  • src
  • store
  • getter.js
  • 张杰's avatar
    增加工单功能 · f03c4ad3
    张杰 committed Jan 01, 2022
    f03c4ad3
getter.js 328 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const getters = {
    // 获取车型数据
    getTreeData:state => {
        let arr = state.vehicleTree;
        let n = localStorage.getItem('carTree') ? JSON.parse(localStorage.getItem('carTree')) : []
        if(!arr || arr.length<=0){
            arr = n;
        }

        return arr;
    },

}

export default getters;