<!-- 标准物价 -->
<template>
  <router-view v-slot="{Component}">
    <transition v-if="show"
                mode="out-in">
      <component :is="Component"></component>
    </transition>
  </router-view>
</template>

<script>
import { addRoutes } from 'vue-helper'
import { axios } from 'axios'
import { ref } from 'vue'
export default {
  setup() {
    const show = ref(false)

    axios.verify().then(resp => {
      addRoutes('/standard-price', [
        {
          path: '/standard-price',
          name: 'standard-price',
          component: '@/views/price/standard-price.vue'
        }
      ])

      show.value = true
    })

    return {
      show
    }
  }
}

</script>
<style scoped>
</style>