From 739ebd83a66ef778bc6048a8bd99c10144d7d671 Mon Sep 17 00:00:00 2001 From: sunpm <35005831+sunpm@users.noreply.github.com> Date: Thu, 7 Jul 2022 11:57:32 +0800 Subject: [PATCH] Update cookies.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改错别字 --- docs/usage/cookies.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage/cookies.md b/docs/usage/cookies.md index 656dbc4..96f1dc4 100644 --- a/docs/usage/cookies.md +++ b/docs/usage/cookies.md @@ -63,7 +63,7 @@ const counter = useCookie('counter', { 💡**注意:** cookie的存储模型规定如果同时设置了`expires`和`maxAge`,以`maxAge`优先。但是并不是所有的客户端都遵守这一规定,所以同时设置时应该让他们都指向相同的日期和时间! -如果都不社会`expires`和`maxAge`,那么cookie将仅用于会话,当用户关闭浏览器的时候被移除。 +如果都不设置`expires`和`maxAge`,那么cookie将仅用于会话,当用户关闭浏览器的时候被移除。 ### [`httpOnly`](https://v3.nuxtjs.org/docs/usage/cookies#httponly) @@ -130,4 +130,4 @@ export default (req, res) => { // Send JSON response return { counter } } -``` \ No newline at end of file +```