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
if (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>
<mini-program
:channel="props.channel"
v-if="props.channel.appId === 'SMALL_PRAGRAM'">
v-if="props.channel.appCategory === 'SMALL_PRAGRAM'">
</mini-program>
<wechat
: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
:channel="props.channel"
v-if="['JD','NETEASE','MEDIUM'].includes(props.channel.appId)">
v-if="['JD','NETEASE','MEDIUM'].includes(props.channel.appCategory)">
</sample-library>
</div>
<!-- <div v-if="props.channel !== ''">-->