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