From ff0604306c9cf18a05e5d8a3a136432284c290bb Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 23 五月 2023 09:15:04 +0800
Subject: [PATCH] 1.递交

---
 src/main.js |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/main.js b/src/main.js
index 099145e..8542544 100644
--- a/src/main.js
+++ b/src/main.js
@@ -63,6 +63,26 @@
 import vGanttChart from './lib/v-gantt-chart/index' // 寮曠敤淇敼杩囩殑gantt
 Vue.use(vGanttChart)
 
+
+
+import { setCookie } from '@/utils/auth' // 寮曠敤淇敼杩囩殑gantt
+// 鍒ゆ柇鏄惁璧板師骞冲彴杩囨潵
+if (window.location.hash.indexOf('guid') !== -1) {
+  setCookie('cloud', true)// 璧颁簯骞冲彴
+
+  const url = window.location.hash.split('?')[1]
+  const arr = url.split('&')
+  setCookie('guid', arr[0].split('=')[1])
+  setCookie('userid', arr[1].split('=')[1])
+  setCookie('admin', arr[2].split('=')[1])
+  setCookie('navTabId', arr[2].split('=')[1])
+  setCookie('username', decodeURIComponent(arr[3].split('=')[1]))
+  setCookie('password', arr[4].split('=')[1])
+  setCookie('usertype', arr[5].split('=')[1])
+  setCookie('rediskey', arr[6].split('=')[1])
+}
+
+
 new Vue({
   el: '#app',
   router,

--
Gitblit v1.9.3