fix:添加类别区分渠道

This commit is contained in:
du.meimei
2025-03-19 14:25:51 +08:00
parent 4fccf52e21
commit 0d9458a31d
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ onMounted(() => {
const { record } = route.query const { record } = route.query
if (record) { if (record) {
channel.value = JSON.parse(record) channel.value = JSON.parse(record)
activeChannel.value = channel.value.appId activeChannel.value = channel.value.appCategory
} }
}) })

View File

@@ -13,14 +13,14 @@
<div style="padding-top: 20px" v-else> <div style="padding-top: 20px" v-else>
<mini-program <mini-program
:channel="props.channel" :channel="props.channel"
v-if="props.channel.appId === 'SMALL_PRAGRAM'"> v-if="props.channel.appCategory === 'SMALL_PRAGRAM'">
</mini-program> </mini-program>
<wechat <wechat
:channel="props.channel" :channel="props.channel"
v-if="['YIP','SHOPPING_GUIDE'].includes(props.channel.appId)"></wechat> v-if="props.channel.appCategory === 'YIP' || props.channel.appCategory === 'SHOPPING_GUIDE'"></wechat>
<sample-library <sample-library
:channel="props.channel" :channel="props.channel"
v-if="['JD','NETEASE','MEDIUM'].includes(props.channel.appId)"> v-if="['JD','NETEASE','MEDIUM'].includes(props.channel.appCategory)">
</sample-library> </sample-library>
</div> </div>
<!-- <div v-if="props.channel !== ''">--> <!-- <div v-if="props.channel !== ''">-->