code refactoring
This commit is contained in:
parent
54417a4de5
commit
dd3cd788a5
10
index.html
10
index.html
@ -1725,13 +1725,9 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (targetPage.includes('/')) {
|
if (targetPage.includes('/')) {
|
||||||
if (targetPage.includes('?')) {
|
let path;
|
||||||
const splitAddress = targetPage.split('?')
|
[path, searchParams] = targetPage.split('?');
|
||||||
searchParams = splitAddress.pop();
|
[, pageId, subPageId1, subPageId2] = path.split('/')
|
||||||
[, pageId, subPageId1, subPageId2] = splitAddress.pop().split('/')
|
|
||||||
} else {
|
|
||||||
[, pageId, subPageId1, subPageId2] = targetPage.split('/')
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
pageId = targetPage
|
pageId = targetPage
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user