mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 10:00:13 +09:00
fix: 修复文章分享功能
This commit is contained in:
parent
26ce84b950
commit
58f1e7f131
@ -232,7 +232,9 @@ import commentModal from '@/components/comment-modal/comment-modal.vue';
|
||||
|
||||
import rCanvas from '@/components/r-canvas/r-canvas.vue';
|
||||
import barrage from '@/components/barrage/barrage.vue';
|
||||
import {getAppConfigs} from '@/config/index.js'
|
||||
import {
|
||||
getAppConfigs
|
||||
} from '@/config/index.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -344,6 +346,24 @@ export default {
|
||||
onPullDownRefresh() {
|
||||
this.fnGetData();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
const cover = this.result.spec.cover ? this.calcUrl(this.result.spec.cover) : ""
|
||||
return {
|
||||
path: '/pagesA/article-detail/article-detail?name=' + this.result.metadata.name,
|
||||
title: this.result.spec.title,
|
||||
imageUrl: cover
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
const cover = this.result.spec.cover ? this.calcUrl(this.result.spec.cover) : ""
|
||||
return {
|
||||
title: this.result.spec.title,
|
||||
query: {
|
||||
name: this.result.metadata.name
|
||||
},
|
||||
imageUrl: cover
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fnGetData() {
|
||||
this.loading = 'loading';
|
||||
@ -997,8 +1017,7 @@ export default {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
|
||||
&-name {
|
||||
}
|
||||
&-name {}
|
||||
|
||||
&-time {
|
||||
margin-left: 36rpx;
|
||||
|
Loading…
Reference in New Issue
Block a user