From 84ef53c807ec6dddf4a0226b11b0e0f9f6d9cec0 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 27 七月 2023 10:21:13 +0800
Subject: [PATCH] 1.项目优化
---
src/main.js | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/src/main.js b/src/main.js
index 0754da0..d918a7d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -70,23 +70,6 @@
// 寮曠敤淇敼杩囩殑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