瀏覽代碼

test cookie

huaisianhuang 3 年之前
父節點
當前提交
6805a32e4b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      html/login.js

+ 1 - 0
html/login.js

@@ -55,6 +55,7 @@ function login(){
         data: data
     }).then(res => {
         console.log(res.data);
+        document.cookie = 'jwt_token='+res.data.access_token;
         if(res.data.access_token!=null) {
             var title = "登入成功";
             if (lang == 'en') { // 英文版訊息