Skip to content

Commit

Permalink
docs: 错别字登陆更正为登录
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Feb 7, 2024
1 parent 13165b7 commit 975bfd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface RouteSettings {
*/
async: boolean
/** 当动态路由功能关闭时:
* 1. 应该将所有路由都写到常驻路由里面(表明所有登陆的用户能访问的页面都是一样的
* 1. 应该将所有路由都写到常驻路由里面(表明所有登录的用户能访问的页面都是一样的
* 2. 系统自动给当前登录用户赋值一个没有任何作用的默认角色
*/
defaultRoles: Array<string>
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useUserStore = defineStore("user", () => {
const newToken = "token-" + role
token.value = newToken
setToken(newToken)
// 用刷新页面代替重新登陆
// 用刷新页面代替重新登录
window.location.reload()
}
/** 登出 */
Expand Down
2 changes: 1 addition & 1 deletion src/views/permission/components/SwitchRoles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ watch(switchRoles, (value) => {
<div>
<div>你的权限:{{ userStore.roles }}</div>
<div class="switch-roles">
<span>切换权限(模拟权限变化后重新登陆):</span>
<span>切换权限(模拟权限变化后重新登录):</span>
<el-radio-group v-model="switchRoles">
<el-radio-button label="editor" />
<el-radio-button label="admin" />
Expand Down

0 comments on commit 975bfd2

Please sign in to comment.