fix:微信渠道传参修改

This commit is contained in:
du.meimei
2025-03-19 13:31:07 +08:00
parent a6ee0d869c
commit 1adb22020b

View File

@@ -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)