Просмотр исходного кода

地址栏不必要参数去掉

luolei 4 лет назад
Родитель
Сommit
21e898c1e9
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/js/staticSearch.js

+ 3 - 2
src/js/staticSearch.js

@@ -159,11 +159,12 @@ $(".staticSearchB ul").on("click","li",function(){
     const type = $(this).attr('data-type')
     const sign = $(this).attr('data-sign')
     if(type != 48){
-        openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
+        openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`)
+        // openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
     }else{
         let msg = JSON.parse(getUrlArgObject("msg"));
         const msg1 = JSON.parse(JSON.stringify(msg))
-        console.log('scaleName', msg,infoMsgName)
+        // console.log('scaleName', msg,infoMsgName)
         msg1.scaleName = infoMsgName
         msg1.featureType = 21
         openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)