From 4fb206d45bed4d8839172ddd75c3569ac8dbdb75 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 25 二月 2025 16:58:05 +0800
Subject: [PATCH] 多边形主题

---
 src/main.ts |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index 65a5a37..dd0145a 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -11,8 +11,11 @@
 import { initBackEndControlRoutes } from './router/backEnd';
 import '/@/theme/index.scss';
 import '@amap/amap-jsapi-types';
-import { getAllData ,pingLogin} from './stores/chatRoom';
+import { autoLogin, getAllData ,getGlobalPosition,pingLogin} from './stores/chatRoom';
 import { setTheme } from '/@/utils/theme';
+import { accessSessionKey } from './utils/request';
+import { Local } from './utils/storage';
+import { getSystemGlobalConfig } from './stores/global';
 
 // setTheme();
 const app = createApp(App);
@@ -25,9 +28,16 @@
 
 (async function () {
 	await initBackEndControlRoutes();
+	const session = Local.get(accessSessionKey);
+	if (!session) {
+		await autoLogin();
+	}
 	app.use(pinia).use(router).use(ElementPlus).use(i18n).mount('#app');
 })();
 
 // 鑾峰彇鍏ㄥ眬鏁版嵁
 getAllData();
 pingLogin();
+
+getGlobalPosition();
+getSystemGlobalConfig();

--
Gitblit v1.9.3