jhzh
2024-09-23 e678ec74066a2c5b5b3b404d3344bffbd3cf59bd
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/c2c-trade/page/c2cBuy";
import c2cSell from "@/page/c2c-trade/page/c2cSell";
import { mapGetters } from "vuex";
export default {
  name: "c2cTradeBridge",
  computed: {
    ...mapGetters('c2c', ['direction'])
  },
  components: {
    c2cBuy,
    c2cSell,
  },
  created() {
    console.log(this.direction)
  }
}
</script>
 
<style scoped></style>