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
  • jack's avatar
    增加分线程处理数据 · 77ae9ecf
    jack committed Aug 23, 2021
    77ae9ecf Browse Files
getter.js 327 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;