src/views/systemSetting/platform/portalSetting/index.vue
@@ -119,8 +119,7 @@ url: 'sccg/system/portal/logo/add', data: icon }).then(res => { console.log(res); if (res.code == 200) { if (res.code === 200) { this.$axios({ method: 'get', url: 'sccg/system/portal/logo/search', @@ -135,21 +134,18 @@ }) } } else { console.log(obj); // 发送请求 this.$axios({ method: 'put', url: 'sccg/system/portal/logo/update', data: obj }).then(res => { console.log(res); this.$message({ message: res.message, type: 'success' }) }) } localStorage.removeItem('pic'); window.location.href = ''; }