fix:添加类别区分渠道
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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 !== ''">-->
|
||||
|
||||
Reference in New Issue
Block a user