src/store/modules/common.js
@@ -10,7 +10,9 @@ */ 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', @@ -34,6 +36,10 @@ }, }, mutations: { setMapSetting: (state, data) => { state.mapSetting = data loadLAYER() }, SET_LANGUAGE: (state, language) => { state.language = language setStore({