릴리스: v1.4.9 경로 헬퍼 도입과 사용자 이동 경로 정리

This commit is contained in:
2026-04-02 18:55:12 +09:00
parent 6b6676ceec
commit 5af5202455
15 changed files with 99 additions and 41 deletions

View File

@@ -2,6 +2,7 @@
import { Teleport, computed, inject, onMounted, onUnmounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { api } from '../lib/api'
import { editorPath } from '../lib/paths'
import { toApiUrl } from '../lib/runtime'
import lockResetIcon from '../assets/icons/lock_reset.svg'
import deleteIcon from '../assets/icons/delete.svg'
@@ -1530,7 +1531,7 @@ function closePreviewModal() {
function previewTierListUrl(tierList) {
if (!tierList?.gameId || !tierList?.id) return ''
return `/editor/${tierList.gameId}/${tierList.id}?preview=1`
return editorPath(tierList.gameId, tierList.id, { preview: true })
}
function openTierListImportModal(tierList, items) {