胡思旗
2023-08-28 dcfcb1f1c1f0e0d9084082b14f2b8997dca6fe0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<template>
    <div>
        我是列表页面
        <button @click="goDetail">列表详情</button>
    </div>
</template>
 
<script setup lang="ts">
import { useRouter } from 'vue-router'
import { ERouterName } from '/@/types/enums'
const router = useRouter()
const goDetail = () => {
  console.log(router, '==========')
  router.push({ name: ERouterName.WORKSPACE })
}
</script>
 
<style scoped> </style>