fix: 圈子权限校验

This commit is contained in:
kaizheng(郑凯) 2025-02-27 21:19:12 +08:00
parent 7403968e85
commit 0bc9e4e89f

View File

@ -104,6 +104,13 @@ const queryCircleDetail = async () => {
const ret = await getCircleDetail({ id: route.query.id }) const ret = await getCircleDetail({ id: route.query.id })
if (ret && ret.code == 0) { if (ret && ret.code == 0) {
detail.value = ret.data detail.value = ret.data
if (detail.value.authorityId && !detail.value.authResultVo.auth) {
return router.replace(
`/circle?id=${route.query.id}&saleUserId=${
route.query.saleUserId || ""
}`
)
}
const key = `circleNotice-${detail.value.id}-${store.state.userInfo.userId}` const key = `circleNotice-${detail.value.id}-${store.state.userInfo.userId}`
const storageCircleNotice = localStorage.getItem(key) const storageCircleNotice = localStorage.getItem(key)
if ( if (
@ -115,8 +122,6 @@ const queryCircleDetail = async () => {
} else { } else {
showNotice.value = false showNotice.value = false
} }
} else if (ret && ret.code === 6013) {
router.replace(`/circle?id=${route.query.id}`)
} }
} }