41 lines
830 B
Vue
41 lines
830 B
Vue
<template>
|
|
<div>
|
|
<Ctwing
|
|
v-if="channel === 'Ctwing'"
|
|
:provider="props.provider"
|
|
:bindProduct='bindProduct'
|
|
:data="props.data"
|
|
/>
|
|
<OneNet
|
|
v-if="channel === 'OneNet'"
|
|
:provider="props.provider"
|
|
:bindProduct='bindProduct'
|
|
:data="props.data"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup name="AccessCloud">
|
|
import Ctwing from './Ctwing.vue';
|
|
import OneNet from './OneNet.vue';
|
|
|
|
const props = defineProps({
|
|
provider: {
|
|
type: Object,
|
|
default: () => {},
|
|
},
|
|
data: {
|
|
type: Object,
|
|
default: () => {},
|
|
},
|
|
bindProduct: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
});
|
|
|
|
const channel = props.provider.channel;
|
|
</script>
|
|
|
|
<style lang="less" scoped></style>
|