diff --git a/src/views/Publish/accurate/channel/Wechat.vue b/src/views/Publish/accurate/channel/Wechat.vue index 088e3c74..c2fe5e0f 100644 --- a/src/views/Publish/accurate/channel/Wechat.vue +++ b/src/views/Publish/accurate/channel/Wechat.vue @@ -101,22 +101,21 @@ const onSubmit = () => { }); }; async function submitData(){ - formState.value.appId = [formState.value.appId] let params = { ...formState.value, "publishSn": route.query.sn, + appId:[props.channel.appId] } - const res = await savePublish(params); - if(res.code === 0) { - if(res.data.linkUrl) { - window.location.href = res.data.linkUrl; - } - message.success('提交成功'); - onCancel() - } else { - message.error(res.msg || '提交失败'); + if (props.channel.appId === 'SHOPPING_GUIDE'){ + params.appId = [formState.value.appId] } + const res = await savePublish(params); + if(res.data) { + window.location.href = res.data[0].redirectUrl; + } + message.success('提交成功'); + // onCancel() } const onCancel = () => { router.go(-1)