1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <template>
| <div class="w-full">
| <c2c-buy v-if="direction === 'buy'" />
| <c2c-sell v-else />
| </div>
| </template>
|
| <script>
| import c2cBuy from "./page/c2cBuy.vue";
| import c2cSell from "./page/c2cSell.vue";
| import { mapGetters } from "vuex";
| export default {
| name: "c2cTradeBridge",
| computed: {
| ...mapGetters('c2c', ['direction'])
| },
| components: {
| c2cBuy,
| c2cSell,
| },
| created() {
| console.log(this.direction)
| }
| }
| </script>
|
| <style scoped></style>
|
|