-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:未登录不允许查看好友选项 #112
feat:未登录不允许查看好友选项 #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢 PR~, 有一些内容需要修改.
<!-- 会话 --> | ||
<router-link exactActiveClass="tool-icon-active" to="/"> | ||
<el-badge | ||
:value="unReadMark.newMsgUnreadCount" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我这里依赖的 值 unReadMark.newMsgUnreadCount
和下面 unReadMark.newFriendUnreadCount
并不一样,而且显隐可以直接用 指令 v-login-show 哈。
这部分逻辑可以还原。
src/router/guard/permissionGuard.ts
Outdated
router.beforeEach(async (to, from, next) => { | ||
// 是否登录 | ||
const userStore = useUserStore() | ||
const isSign = computed(() => userStore.isSign) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
computed 貌似有点多余,反正每次 导航都会重新取。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已按要求修改,可以重新审核
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢PR~
🤔 这个变动的性质是? (至少选中一项)
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
☑️ 请求合并前的自查清单
🚀 概述
copilot:summary
🔍 实现细节
copilot:walkthrough