refactor: 前端defaultUrls+compose key sync→index

This commit is contained in:
mediabot-pt
2026-07-10 10:58:43 +08:00
parent eb3458cb1b
commit c714086f2d

View File

@@ -142,7 +142,7 @@ const editSiteId = ref(''), editorJson = ref('{}'), originalJson = ref('')
const snapshotStatus = ref(null)
const authType = ref('NONE')
const defaultUrls = {
sync: '/index.php',
index: '/index.php',
signIn: '/attendance.php',
search: '/torrents.php?search={keyword}',
download: '/download.php?id={id}',
@@ -315,7 +315,7 @@ const addEntryByKey = (k) => {
syncToJson()
}
const addComposeEntry = () => {
parsed.value.push({ key: 'sync', compose: ['profile', 'peerStats'] })
parsed.value.push({ key: 'index', compose: ['profile', 'peerStats'] })
syncToJson()
}
const deletePages = async () => {