|
|
@@ -84,7 +84,7 @@
|
|
|
>
|
|
|
<image
|
|
|
class="article-cover"
|
|
|
- :src="item.coverImage || '/static/default-article.png'"
|
|
|
+ :src="getImageUrl(item.coverImage) || '/static/default-article.png'"
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
<view class="article-body">
|
|
|
@@ -123,6 +123,7 @@
|
|
|
<script>
|
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
|
import { getArticleCategories, getArticleList, getFeaturedArticles } from '../../utils/api.js'
|
|
|
+import config from '@/config.js'
|
|
|
|
|
|
var dimensionConfig = {
|
|
|
all: { label: '全部', color: '#64748B', theme: 'mind-wisdom', tagline: '探索知识,滋养成长', quote: '学而时习之,不亦说乎' },
|
|
|
@@ -331,11 +332,14 @@ export default {
|
|
|
},
|
|
|
onSearchBlur: function() {
|
|
|
if (!this.searchKeyword) {
|
|
|
- this.searchFocused = false
|
|
|
- }
|
|
|
+ this.searchFocused = false
|
|
|
+ },
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ return config.API_BASE_URL + path
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|