Browse Source

存个expire的cookie给后端在测试服用

shanbinzhang 4 tháng trước cách đây
mục cha
commit
7a43cd5096
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/views/Login.vue

+ 1 - 0
src/views/Login.vue

@@ -501,6 +501,7 @@ export default {
             localStorage.setItem("AdminName", res.Data.AdminName);
             localStorage.setItem("loginTime",new Date())
             storage.setCookie('ai_user',res.Data.AdminName)
+            storage.setCookie('expire',new Date().getTime()+(8 * 60 * 60 * 1000))
 
         },
         //根据角色判断应该进入系统的哪个页面,进入系统