【更新】优化前端配置缓存、双排菜单布局下页脚与经典布局同步

pull/56/head
小诺 2022-11-08 21:23:27 +08:00 committed by 俞宝山
parent c5e9ad95f1
commit 05bb1d2f9d
2 changed files with 17 additions and 25 deletions

View File

@ -8,22 +8,21 @@
import i18n from '@/locales'
import store from '@/store'
import config from '@/config'
import configApi from '@/api/dev/configApi'
import { message } from 'ant-design-vue'
import tool from '@/utils/tool'
store.commit('initTheme')
const locale = i18n.global.messages[i18n.global.locale].lang
let formData = ref(config.SYS_BASE_CONFIG)
configApi.configSysBaseList().then((data) => {
if (data) {
data.forEach((item) => {
formData.value[item.configKey] = item.configValue
})
tool.data.set('SNOWY_SYS_BASE_CONFIG', formData.value)
store.commit('SET_sysBaseConfig', formData.value)
}
})
if (!tool.data.get('SNOWY_SYS_BASE_CONFIG')) {
let formData = ref(config.SYS_BASE_CONFIG)
configApi.configSysBaseList().then((data) => {
if (data) {
data.forEach((item) => {
formData.value[item.configKey] = item.configValue
})
tool.data.set('SNOWY_SYS_BASE_CONFIG', formData.value)
store.commit('SET_sysBaseConfig', formData.value)
}
})
}
</script>

View File

@ -63,13 +63,6 @@
</div>
</div>
</a-layout-content>
<!--
<a-layout-footer style="text-align: center">
<a style="color: #a0a0a0" :href="sysBaseConfig.SNOWY_SYS_COPYRIGHT_URL" target="_blank">{{
sysBaseConfig.SNOWY_SYS_COPYRIGHT
}}</a>
</a-layout-footer>
-->
</a-layout>
</a-layout>
</template>
@ -164,13 +157,13 @@
</keep-alive>
</router-view>
<iframe-view></iframe-view>
<div class="main-bottom-wrapper">
<a style="color: #a0a0a0" :href="sysBaseConfig.SNOWY_SYS_COPYRIGHT_URL" target="_blank">{{
sysBaseConfig.SNOWY_SYS_COPYRIGHT
}}</a>
</div>
</div>
</a-layout-content>
<a-layout-footer style="text-align: center">
<a style="color: #a0a0a0" :href="sysBaseConfig.SNOWY_SYS_COPYRIGHT_URL" target="_blank">{{
sysBaseConfig.SNOWY_SYS_COPYRIGHT
}}</a>
</a-layout-footer>
</a-layout>
</a-layout>
</template>