<template>
  <ChooseFile @upload="uploadSuccess" />
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
import ChooseFile from './components/ChooseFile/ChooseFile.vue'

const router = useRouter()
const uploadSuccess = (data) => {
  router.replace({
    path: '/comment-excel',
    query: {
      fileId: data.orderFileId
    }
  })
}
</script>
<style lang="scss" scoped></style>
