| | |
| | | <template> |
| | | <div class="log"> |
| | | <header> |
| | | <div clas="headerTitle"> |
| | | <div class="headerTitle"> |
| | | 系统设置 >> 门户管理 > logo管理 |
| | | </div> |
| | | </header> |
| | |
| | | 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', |
| | |
| | | }) |
| | | } |
| | | } 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 = ''; |
| | | |
| | | } |