From 441df8843ebf37bd2eea5baee67dd590b06aa09d Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Fri, 15 Sep 2023 09:57:36 +0800
Subject: [PATCH] 修复token不在本地登录页一闪的情况
---
src/store/index.ts | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/store/index.ts b/src/store/index.ts
index 56d32af..96f55bb 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -5,15 +5,13 @@
import { getLayers } from '/@/api/layer'
import { LayerType } from '/@/types/mapLayer'
import { WaylineFile } from '/@/types/wayline'
-import getter from './getters'
import { DevicesCmdExecuteInfo } from '/@/types/device-cmd'
import map from './map'
-import common from '/@/store/common'
const initStateFunc = () => ({
Layers: [
{
- name: '默认',
+ name: 'default',
id: '',
is_distributed: true,
elements: [],
@@ -22,7 +20,7 @@
type: 1
},
{
- name: '共享',
+ name: 'share',
id: '',
is_distributed: true,
elements: [],
@@ -245,9 +243,7 @@
mutations,
actions,
modules: {
- getter,
- map,
- common
+ map
},
}
--
Gitblit v1.9.3