mirror of https://gitee.com/xiaonuobase/snowy
【更新】优化前端配置缓存、双排菜单布局下页脚与经典布局同步
parent
c5e9ad95f1
commit
05bb1d2f9d
|
@ -8,22 +8,21 @@
|
||||||
import i18n from '@/locales'
|
import i18n from '@/locales'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
|
|
||||||
import configApi from '@/api/dev/configApi'
|
import configApi from '@/api/dev/configApi'
|
||||||
import { message } from 'ant-design-vue'
|
|
||||||
import tool from '@/utils/tool'
|
import tool from '@/utils/tool'
|
||||||
|
|
||||||
store.commit('initTheme')
|
store.commit('initTheme')
|
||||||
const locale = i18n.global.messages[i18n.global.locale].lang
|
const locale = i18n.global.messages[i18n.global.locale].lang
|
||||||
|
if (!tool.data.get('SNOWY_SYS_BASE_CONFIG')) {
|
||||||
let formData = ref(config.SYS_BASE_CONFIG)
|
let formData = ref(config.SYS_BASE_CONFIG)
|
||||||
configApi.configSysBaseList().then((data) => {
|
configApi.configSysBaseList().then((data) => {
|
||||||
if (data) {
|
if (data) {
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
formData.value[item.configKey] = item.configValue
|
formData.value[item.configKey] = item.configValue
|
||||||
})
|
})
|
||||||
tool.data.set('SNOWY_SYS_BASE_CONFIG', formData.value)
|
tool.data.set('SNOWY_SYS_BASE_CONFIG', formData.value)
|
||||||
store.commit('SET_sysBaseConfig', formData.value)
|
store.commit('SET_sysBaseConfig', formData.value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -63,13 +63,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-layout-content>
|
</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>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -164,13 +157,13 @@
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</router-view>
|
</router-view>
|
||||||
<iframe-view></iframe-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>
|
</div>
|
||||||
</a-layout-content>
|
</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>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue