From eda46bf83619297600436e5015fd8977e9974219 Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期五, 04 十一月 2022 15:50:31 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui --- 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