| | |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-04-03 12:01:58 |
| | | * @FilePath: \command-center-dashboard\src\store\modules\common.js |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2025 by shuishen, All Rights Reserved. |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2025 by shuishen, All Rights Reserved. |
| | | */ |
| | | import { setStore, getStore, removeStore } from 'utils/store' |
| | | import website from '@/config/website' |
| | | import cesiumOptions from '@/utils/cesium-tsa' |
| | | |
| | | const { loadLAYER } = cesiumOptions() |
| | | const common = { |
| | | state: { |
| | | language: getStore({ name: 'language' }) || 'zh-cn', |
| | |
| | | }, |
| | | }, |
| | | mutations: { |
| | | setMapSetting: (state, data) => { |
| | | state.mapSetting = data |
| | | loadLAYER() |
| | | }, |
| | | SET_LANGUAGE: (state, language) => { |
| | | state.language = language |
| | | setStore({ |