From ccd7b3c5b24fa115a732ea915e2e586de717ea1c Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期一, 26 九月 2022 21:39:43 +0800
Subject: [PATCH] 完成logo管理

---
 src/views/systemSetting/platform/mySetting/index.vue |   41 ++++++++++++++++++++++++++---------------
 1 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/src/views/systemSetting/platform/mySetting/index.vue b/src/views/systemSetting/platform/mySetting/index.vue
index b928e83..b221b7f 100644
--- a/src/views/systemSetting/platform/mySetting/index.vue
+++ b/src/views/systemSetting/platform/mySetting/index.vue
@@ -13,7 +13,8 @@
                         <h4>{{item.title}}</h4>
                         <!-- 瀛愯彍鍗� -->
                         <ul class="menu">
-                            <li class="menuItem" v-for="(son,sonIndex) in item.children" @click.stop="getContent(index,sonIndex)">
+                            <li class="menuItem" v-for="(son,sonIndex) in item.children"
+                                @click.stop="getContent(index,sonIndex)">
                                 <span>{{son.title}}</span>
                             </li>
                         </ul>
@@ -46,27 +47,34 @@
 export default {
     data() {
         return {
-            menuList:[],
-            article:[],
+            menuList: [],
+            article: [],
         }
     },
-    created(){
+    created() {
         const { getMenuList } = this;
         getMenuList();
     },
-    methods:{
+    methods: {
         // 鑾峰彇鑿滃崟鍒楄〃
-        getMenuList(){
-            this.$axios.get('sccg/menu/treeList').then(res=>{
-                console.log(res);
-                const {data} = res;
-                this.menuList = data;
-                this.getContent(0);
-            })
+        getMenuList() {
+            // this.$axios({
+            //     method: 'get',
+            //     url: 'sccg/system/portal/menu/search',
+            //     data: {
+            //         current: 1,
+            //         size: 10,
+            //     }
+            // }).then(res => {
+            //     console.log(res);
+            //     const { data } = res;
+            //     this.menuList = data;
+            //     this.getContent(0);
+            // })
         },
         // 鍒囨崲鑿滃崟鍐呭灞曠ず
-        getContent(index,sonIndex=null){
-            if(sonIndex===null){
+        getContent(index, sonIndex = null) {
+            if (sonIndex === null) {
                 this.article = this.menuList[index];
                 return;
             }
@@ -98,6 +106,7 @@
                 border: 1px solid #fff;
                 padding: 20px;
                 height: calc(100vh - 120px);
+
                 .asideItem {
                     h4 {
                         line-height: 40px;
@@ -120,6 +129,7 @@
             .content {
                 flex: 1;
                 margin-left: 100px;
+
                 h4 {
                     margin: 0;
                     line-height: 80px;
@@ -134,7 +144,8 @@
                     .editItem {
                         line-height: 40px;
                         display: flex;
-                        span{
+
+                        span {
                             margin-left: 10px;
                         }
                     }

--
Gitblit v1.8.0