<template>
  <div class="catch-all">
    <h1>URL 后缀捕获页面</h1>
    <p>当前 URL 参数: <strong>{{ $route.params.pathMatch }}</strong></p>
    <p>完整路径: <strong>{{ fullPath }}</strong></p>
  </div>
</template>

<script>
export default {
  name: 'CatchAll',
  computed: {
    fullPath() {
      return this.$route.fullPath
    }
  },
  mounted() {
    console.log('URL 后缀参数:', this.$route.params.pathMatch)
  }
}
</script>

<style scoped>
.catch-all {
  padding: 20px;
}
</style>
