|
|
@@ -197,13 +197,16 @@ function publish() {
|
|
|
(uni as any).shareToOfficialAccount({
|
|
|
...data,
|
|
|
success: (postObj: { postUrl: string }) => {
|
|
|
- //TODO: 换接口
|
|
|
LightVillageApi.publishMessage(new PostMessage().setSelfValues({
|
|
|
title: title.value,
|
|
|
content: content.value,
|
|
|
images: images.value.map((image) => image.url),
|
|
|
image: images.value[0].url,
|
|
|
path: `/pages/index`,
|
|
|
+ villageId: querys.value.villageId,
|
|
|
+ userId: authStore.userId,
|
|
|
+ jumpUrl: postObj.postUrl,
|
|
|
+ topicName: querys.value.tag || '亮乡源',
|
|
|
})).then(() => {
|
|
|
console.log('发布成功');
|
|
|
}).catch((e) => {
|