소스 검색

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/hhh_step_question into master

Your Name 4 년 전
부모
커밋
775d12e058
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      step_question/apis/static/index-line.html

+ 3 - 2
step_question/apis/static/index-line.html

@@ -144,9 +144,10 @@
       }
       showcoffee();
 
+    
     function getUserid() {
-      let temparr = document.location.href.split('');
-      let id = temparr[-1];
+      const urlParams = new URLSearchParams(document.location.href);
+      let id = urlParams.get('userid');
       $('#userid').val = id;
      // console.log(id);
     }