<template>
  <Container>
    <MerchantForm v-if="merchantId" :merchantId="merchantId"/>
    <el-alert v-else title="当前用户不存在店铺信息" type="error" :closable="false" center/>
  </Container>
</template>

<script>
import MerchantForm from './components/MerchantForm'
import { mapGetters } from 'vuex'

export default {
  name: "MerchantInfo",
  components: {MerchantForm},
  computed: {
    ...mapGetters(['merchantId']),
  }
}
</script>