Limengbo 5 lat temu
rodzic
commit
b0dc74a23a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      view/question.html

+ 2 - 2
view/question.html

@@ -66,9 +66,9 @@
 </body>
 <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
 <script> 
-//console.log(localStorage.getItem('userData') == 'undefined')
+alert(localStorage.getItem('userData'))
 window.onload=function(){
-    // if(localStorage.getItem('userData') == 'undefined') {
+    if(localStorage.getItem('userData') == 'undefined') {
         alert('请重新扫码登陆')
         window.location.href = '../index.html'
         return false;