Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/zhky/commit/e6d28882df598be9d3fc69ba693ebd4e7de9b4a7?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
16 additions and
3 deletions
@ -39,9 +39,22 @@ function buildOptions(xmlDoc,id) {
for ( var i = 0 ; i < options . length ; i ++ ) {
var len = selectObj . length ;
selectObj . length = len + 1 ;
if ( id == 'func' ) {
let optionsArray = Array . from ( options ) ;
let filteredOptions = optionsArray . filter ( option => {
return option . attributes [ 0 ] . nodeValue . indexOf ( 'SP' ) === - 1 ;
} ) ;
selectObjNew . options [ len ] = new Option ( filteredOptions [ i ] . attributes [ 1 ] . nodeValue , filteredOptions [ i ] . attributes [ 0 ] . nodeValue ) ;
if ( filteredOptions [ i ] . attributes [ 2 ] . nodeValue == "selected" ) {
selectObjNew . options [ len ] . selected = true ;
}
} else {
selectObjNew . options [ len ] = new Option ( options [ i ] . attributes [ 1 ] . nodeValue , options [ i ] . attributes [ 0 ] . nodeValue ) ;
if ( options [ i ] . attributes [ 2 ] . nodeValue == "selected" ) {
selectObjNew . options [ len ] . selected = true ;
}
}
}
}