From 5b36a7e896276c4e468d6b0ef29b237eb6fc5663 Mon Sep 17 00:00:00 2001
From: mg <maokecheng@163.com>
Date: 星期四, 27 十月 2022 18:26:27 +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