From 15079a363658567a62db46ccfe489f04af79a687 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期三, 28 九月 2022 18:41:45 +0800
Subject: [PATCH] 运营管理的基础设置和案件池首页

---
 src/views/systemSetting/platform/portalSetting/index.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/views/systemSetting/platform/portalSetting/index.vue b/src/views/systemSetting/platform/portalSetting/index.vue
index 3bac3e2..a799394 100644
--- a/src/views/systemSetting/platform/portalSetting/index.vue
+++ b/src/views/systemSetting/platform/portalSetting/index.vue
@@ -65,7 +65,7 @@
 
     },
     methods: {
-        setPicUrl({obj, value}) {
+        setPicUrl({ obj, value }) {
             const { icon } = this;
             const baseUrl = 'http://140.143.152.226:8410/';
             for (let key in icon) {
@@ -77,15 +77,15 @@
         },
         // 鏇存敼logo鍏ュ彛
         async changeLogo() {
-            const {icon} = this;
+            const { icon } = this;
             console.log(icon);
             const preIcon = await this.getIcon();
             if (preIcon.length === 0) {
                 this.handleChangeLogo();
                 return;
             }
-            for(let key in icon){
-                if(icon[key]!==''){
+            for (let key in icon) {
+                if (icon[key] !== '') {
                     preIcon[key] = icon[key];
                 }
             }
@@ -121,9 +121,15 @@
                     }).then(res => {
                         console.log(res);
                         if (res.code == 200) {
-                            this.$message({
-                                message: res.message,
-                                type: 'success'
+                            this.$axios({
+                                method: 'get',
+                                url: 'sccg/system/portal/logo/search',
+                            }).then(res => {
+                                this.$message({
+                                    message: res.message,
+                                    type: 'success'
+                                })
+                                sessionStorage.setItem('pic', JSON.stringify(result));
                             })
                         }
                     })
@@ -144,7 +150,7 @@
                 })
             }
             localStorage.removeItem('pic');
-            window.location.href='';
+            window.location.href = '';
 
         }
     },

--
Gitblit v1.8.0