交易所前端蓝色ui, 4.5 jiem
jhzh
2024-04-08 67357c691325dc3cf743267f1ef0e1f5c93d7528
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>