<!--
 * @Date: 2021-01-07 20:09:37
 * @LastEditors: fzq
 * @LastEditTime: 2022-03-03 18:39:03
 * @FilePath: \basic-admin\src\components\BaseTable\subcomponents\CheckDetail.vue
 * @Description:
-->
<template>
  <span>
    <el-button type="text" size="small" @click="emitClick">{{ $t('module.basicData.cache.addLocation') }}</el-button>
  </span>
</template>

<script>
export default {
  props: {
    injectData: {
      type: Object,
      default: () => ({})
    }
  },
  methods: {
    emitClick() {
      this.$router.push({
        name: 'locationAdd',
        query: {
          id: this.injectData.id
        }
      })
    }
  }
}
</script>
