fix: 抽奖页面查看不需要登录,仅报名需要登录
Build and Push Docker Image / build-and-push (push) Successful in 1m1s
Build and Push Docker Image / deploy (push) Successful in 7s

This commit is contained in:
2026-07-13 01:46:39 +00:00
parent 625eb76ebc
commit db2a2592ea
2 changed files with 0 additions and 14 deletions
-7
View File
@@ -36,13 +36,6 @@ function formatDate(date: string) {
}
async function fetchLotteries() {
// 检查是否登录
const token = localStorage.getItem('token')
if (!token) {
loading.value = false
return
}
try {
loading.value = true
const res: any = await lotteryApi.list()
@@ -46,13 +46,6 @@ function formatDate(date: string) {
}
onMounted(async () => {
// 检查是否登录
const token = localStorage.getItem('token')
if (!token) {
ElMessage.warning('请先登录后再查看抽奖详情')
return
}
try {
const res: any = await lotteryApi.getById(Number(route.params.id))
lottery.value = res.data