File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 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" ;
You can’t perform that action at this time.
0 commit comments