Skip to content

Commit 8f3e44f

Browse files
committed
[fix]删除编辑页跳转404的逻辑 review by qiwei
1 parent 8c91620 commit 8f3e44f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

examples/js/editor.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.*/
2-
var exampleNameList = [];
3-
42
$(document).ready(function () {
53
window.initI18N(function(){
6-
generateExampleNameList();
74
initPage();
85
bindEvents();
96
sidebarScrollFix();
@@ -18,16 +15,6 @@ function initPage() {
1815
screenResize();
1916
}
2017

21-
function generateExampleNameList() {
22-
var config = window.exampleConfig;
23-
Object.keys(config).forEach((menuItem) => {
24-
config[menuItem].content && Object.keys(config[menuItem].content).forEach((secondMenuItem) => {
25-
config[menuItem].content[secondMenuItem].content && config[menuItem].content[secondMenuItem].content.forEach((exampleInfo) => {
26-
exampleNameList.push(exampleInfo.fileName);
27-
});
28-
});
29-
});
30-
}
3118

3219

3320
//获取示例页面的配置信息
@@ -102,10 +89,6 @@ function loadExampleHtml() {
10289
if (!locationParam) {
10390
return;
10491
}
105-
if (exampleNameList.indexOf(locationParam) === -1) {
106-
window.location.href = window.location.origin + '/web/404.html';
107-
return;
108-
}
10992
var href = window.location.toString();
11093
var mapUrl = href.substr(0, href.lastIndexOf('/') + 1);
11194
mapUrl = mapUrl + locationParam + ".html";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy