refactor: 前端defaultUrls+compose key sync→index
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user