Skip to content

Commit 5b038db

Browse files
committed
首页配置bug
1 parent 8642bc4 commit 5b038db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/src/views/home/Index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<template>
22
<div id="IndexPage" :style="{ background: sysConfig.homeBgColor }">
3-
<div :style="{ 'background-image': 'url(' + sysConfig.homeBg + ')', 'background-repeat': sysConfig.homeBgRepeat }">
3+
<div :style="{ 'background-image': 'url(' + getFileAccessHttpUrl(sysConfig.file_homeBg) + ')', 'background-repeat': sysConfig.homeBgRepeat }">
44
<div class="boxBackground">
55
<div class="boxContent" v-html="sysConfig._homeHtml"></div>
66
</div>
77
</div>
88
</div>
99
</template>
1010
<script>
11+
import { getFileAccessHttpUrl } from '@/api/manage'
1112
export default {
1213
components: {},
1314
data() {
@@ -21,6 +22,9 @@ export default {
2122
this.sysConfig = this.$store.getters.sysConfig
2223
},
2324
mounted() {},
25+
methods:{
26+
getFileAccessHttpUrl
27+
}
2428
}
2529
</script>
2630
<style lang='scss' scoped>

0 commit comments

Comments
 (0)