|
|
@@ -242,6 +242,7 @@
|
|
|
<el-button size="small" class="ele-fluid" icon="el-icon-refresh-left" @click="resetSetting">
|
|
|
{{ $t('layout.setting.reset') }}
|
|
|
</el-button>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
@@ -250,6 +251,8 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import { logoSave, logoByCode } from '@/api/login/index'
|
|
|
+
|
|
|
+
|
|
|
export default {
|
|
|
props: {
|
|
|
// 是否显示, 支持 .sync 修饰
|
|
|
@@ -340,10 +343,9 @@ export default {
|
|
|
methods: {
|
|
|
getLogo() {
|
|
|
logoByCode('logoCode').then(res => {
|
|
|
- this.form.logoName = res.logoName
|
|
|
- this.form.logoUrl = res.logoUrl
|
|
|
-
|
|
|
-
|
|
|
+ this.form = res
|
|
|
+ localStorage.setItem('LogoName', JSON.stringify(this.form))
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -351,7 +353,8 @@ export default {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
logoSave(this.form).then(res => {
|
|
|
- console.log(res)
|
|
|
+ this.getLogo()
|
|
|
+ this.$message.success('操作成功')
|
|
|
})
|
|
|
}
|
|
|
})
|