From edbe2964e959a334e1d9e12717bf854d89d25c92 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 15 六月 2022 21:01:26 +0800
Subject: [PATCH] 1.cookie带到接口上

---
 src/layout/components/Sidebar/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 8e366d8..c9b7c99 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -37,6 +37,7 @@
 import SidebarItem from './SidebarItem'
 import variables from '@/styles/variables.scss'
 import { LoginMenu } from '@/api/user'
+import axios from 'axios'
 
 export default {
   components: { SidebarItem, Logo },
@@ -55,7 +56,8 @@
     //     children: [
     //       { name: '缁勭粐鏋舵瀯' },
     //       { name: '瑙掕壊娓呭崟' },
-    //       { name: '鐢ㄦ埛娓呭崟' }
+    //       { name: '鐢ㄦ埛娓呭崟' }color: $main_color !important;
+
     //     ]
     //   },
     //   {
@@ -68,8 +70,14 @@
     //   }
     // ]
     // this.routers = arr
+    console.log(document.cookie, 777)
+
     const res = await LoginMenu()
     console.log(res, 999)
+
+    // axios.get('http://121.196.36.24:8001/api/Login/LoginSave?username=Admin&password=123456').then(res => {
+    //   console.log(res, 11)
+    // })
   },
   computed: {
     ...mapGetters([

--
Gitblit v1.9.3