|  | @@ -1,37 +1,33 @@
 | 
	
		
			
				|  |  | -import {createApp} from 'vue';
 | 
	
		
			
				|  |  | +import { createApp } from 'vue';
 | 
	
		
			
				|  |  |  import App from '../App.vue';
 | 
	
		
			
				|  |  | -import {createPinia} from 'pinia';
 | 
	
		
			
				|  |  | +import { createPinia } from 'pinia';
 | 
	
		
			
				|  |  |  import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
 | 
	
		
			
				|  |  |  const pinia = createPinia();
 | 
	
		
			
				|  |  |  pinia.use(piniaPluginPersistedstate);
 | 
	
		
			
				|  |  |  let app = createApp(App);
 | 
	
		
			
				|  |  |  app.use(pinia);
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  | -	defineStore  
 | 
	
		
			
				|  |  | +	defineStore
 | 
	
		
			
				|  |  |  } from 'pinia';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export const Store = defineStore({
 | 
	
		
			
				|  |  | -	id:'layerId',//命名
 | 
	
		
			
				|  |  | +	id: '',
 | 
	
		
			
				|  |  |  	state: () => {
 | 
	
		
			
				|  |  | -		return{
 | 
	
		
			
				|  |  | -			queryMapTables:[],//地图查询表
 | 
	
		
			
				|  |  | -			roleId:'',//用户权限ID
 | 
	
		
			
				|  |  | -			realName:'',//登录账号的用户名
 | 
	
		
			
				|  |  | -			layerID:'',//控制唯一底图加载id
 | 
	
		
			
				|  |  | -			markID:'',//控制标注id
 | 
	
		
			
				|  |  | -			keepAlives:['Map3DMain'],//控制加载缓存页面
 | 
	
		
			
				|  |  | -			userport:''
 | 
	
		
			
				|  |  | +		return {
 | 
	
		
			
				|  |  | +			queryMapTables: [],//地图查询表
 | 
	
		
			
				|  |  | +			roleId: '',//用户权限ID
 | 
	
		
			
				|  |  | +			realName: '',//登录账号的用户名
 | 
	
		
			
				|  |  | +			keepAlives: ['Map3DMain'],//控制加载缓存页面
 | 
	
		
			
				|  |  | +			userport: ''
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  | -	getters:{
 | 
	
		
			
				|  |  | -	  keepAlive(state){
 | 
	
		
			
				|  |  | -	    return state.keepAlives
 | 
	
		
			
				|  |  | -	  }
 | 
	
		
			
				|  |  | +	getters: {
 | 
	
		
			
				|  |  | +		keepAlive(state) {
 | 
	
		
			
				|  |  | +			return state.keepAlives
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  |  	actions: {
 | 
	
		
			
				|  |  | -		setLayerID(index){
 | 
	
		
			
				|  |  | -			this.layerID = index
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	},
 | 
	
		
			
				|  |  |  	persist: true
 | 
	
		
			
				|  |  |  })
 |