fix:微信渠道传参修改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user