会员详情页的跳转携带参数方式改为params

(cherry picked from commit d1bb736973)
This commit is contained in:
绮梦
2023-08-23 13:12:05 +08:00
committed by shizhong
parent a845a420b5
commit 2804d199c0
3 changed files with 3 additions and 5 deletions

View File

@ -200,9 +200,7 @@ const openForm = (type: string, id?: number) => {
/** 初始化 */
const route = useRoute()
const router = useRouter()
// TODO @梦:改成 id 路径参数,而不是 query
// TODO @梦:会员列表,把【详情】按钮加上哈
const member_id = route.query.member_id as number
const member_id = route.params.member_id as number
onMounted(() => {
if (!member_id) {
// TODO