Skip to content
  • This project
    • Loading...
  • Sign in

csbr-daop / fe-data-trusted-space

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • fe-data-trusted-space
  • src
  • store
  • modules
  • sysConfig.ts
  • lxs's avatar
    通过config.json配置appKey · 332cfb2e
    lxs committed 2025-06-16 11:33:28 +0800
    332cfb2e
sysConfig.ts 362 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
const sysConfigStore = defineStore(
  // 唯一ID
  'config',
  () => {
    let configMap: any = {};
    const setConfig = (val) => {
      configMap = val
    }

    const getConfig = (field) => {
      return field ? configMap[field]: configMap;
    }

    return {
      configMap,
      setConfig,
      getConfig
    }
  },
)

export default sysConfigStore