Skip to content

Commit 88a9845

Browse files
committed
修改Token存储位置
1 parent eafbb43 commit 88a9845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog-view/src/components/comment/CommentForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
postForm() {
142142
const adminToken = window.localStorage.getItem('adminToken')
143143
if (adminToken) {
144-
//博主登录后,sessionStorage中会存储token,在后端设置属性,可以不校验昵称、邮箱
144+
//博主登录后,localStorage中会存储token,在后端设置属性,可以不校验昵称、邮箱
145145
if (this.commentForm.content === '' || this.commentForm.content.length > 250) {
146146
return this.$notify({
147147
title: '评论失败',

0 commit comments

Comments
 (0)