修正評審評分清單失敗問題
This commit is contained in:
@@ -19,12 +19,14 @@ interface ScoringLinkDialogProps {
|
||||
export function ScoringLinkDialog({ open, onOpenChange, currentCompetition }: ScoringLinkDialogProps) {
|
||||
const { toast } = useToast()
|
||||
|
||||
// 生成評分連結URL
|
||||
// 根據選擇的競賽生成評分連結URL
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || (typeof window !== 'undefined' ? window.location.origin : 'http://localhost:3000')
|
||||
const scoringUrl = `${baseUrl}/judge-scoring`
|
||||
const scoringUrl = currentCompetition?.id
|
||||
? `${baseUrl}/judge-scoring?competitionId=${currentCompetition.id}`
|
||||
: `${baseUrl}/judge-scoring`
|
||||
|
||||
const accessCode = "judge2024"
|
||||
const competitionName = currentCompetition?.name || "2024年第四季綜合AI競賽"
|
||||
const competitionName = currentCompetition?.name || "未選擇競賽"
|
||||
|
||||
const handleCopyUrl = async () => {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user