luobisheng
2022-11-04 eda46bf83619297600436e5015fd8977e9974219
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 = '';
        }
    },