ソースを参照

tenantId设置过期时间

Alfyn 3 週間 前
コミット
49c0f94d9e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/store/modules/user.js

+ 1 - 1
src/store/modules/user.js

@@ -54,7 +54,7 @@ const user = {
           .then((response) => {
             const result = response.data
             storage.set(ACCESS_TOKEN, result.token, new Date().getTime() + 7 * 24 * 60 * 60 * 1000)
-            storage.set(TENANT_ID, result.tenant_id)
+            storage.set(TENANT_ID, result.tenant_id, new Date().getTime() + 7 * 24 * 60 * 60 * 1000)
             storage.set(Authorization, result.token)
             commit('SET_TENANT_ID', result.tenant_id)
             commit('SET_TOKEN', result.token)