瀏覽代碼

history filer done

ming 3 年之前
父節點
當前提交
3fc747acb1
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0 1
      api/static/script_util.js
  2. 1 4
      api/templates/script_index.js

+ 0 - 1
api/static/script_util.js

@@ -143,7 +143,6 @@ $(".gen_avatar").click(function () {
       console.error(error)
     }
   });
-
 });
 
 var loaded_data = ''

+ 1 - 4
api/templates/script_index.js

@@ -15,9 +15,6 @@ $("#btn_login").click(function () {
       window.location.replace("/index")
     }
   };
-  var data = "grant_type=&username=" + $('#username').val() + "&password=qwe&scope=&client_id=&client_secret=";
+  var data = "grant_type=&username=" + $('#username').val() + "&password="+$('#password').val()+"&scope=&client_id=&client_secret=";
   xhr.send(data);
 });
-
-
-