From db73867f9fd475e84584ccb4c4a757e834978978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 24 Sep 2020 15:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=AF=86?= =?UTF-8?q?=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fa4e7c9..c0e6af5 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ export default { name: 'jwt', install() { var expires = this.get('session').ttl - var secret = this.get('jwt') + var secret = this.get('jwt') || 'it_is_secret_key' return { // 签名, 返回token