Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_web_vue3
Commits
0b1d0535
Commit
0b1d0535
authored
Feb 18, 2024
by
张毅辰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1.0.0_RBAC' into 1.0.0_RBAC
parents
f05f8af2
adb6a1df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
NavRight.vue
src/layout/components/NavBar/NavRight.vue
+2
-1
user.ts
src/store/modules/user.ts
+2
-1
index.vue
src/views/login/index.vue
+2
-0
No files found.
src/layout/components/NavBar/NavRight.vue
View file @
0b1d0535
...
@@ -35,7 +35,8 @@
...
@@ -35,7 +35,8 @@
<el-dropdown-item>
{{
$t
(
"navbar.document"
)
}}
</el-dropdown-item>
<el-dropdown-item>
{{
$t
(
"navbar.document"
)
}}
</el-dropdown-item>
</a>
</a>
<el-dropdown-item
divided
@
click=
"logout"
>
<el-dropdown-item
divided
@
click=
"logout"
>
{{
$t
(
"navbar.logout"
)
}}
<!--
{{
$t
(
"navbar.logout"
)
}}
-->
退出
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
...
...
src/store/modules/user.ts
View file @
0b1d0535
...
@@ -9,7 +9,7 @@ import { store } from "@/store";
...
@@ -9,7 +9,7 @@ import { store } from "@/store";
import
{
LoginData
}
from
"@/api/auth/types"
;
import
{
LoginData
}
from
"@/api/auth/types"
;
import
{
UserInfo
}
from
"@/api/user/types"
;
import
{
UserInfo
}
from
"@/api/user/types"
;
import
{
getToken
,
setToken
}
from
"@/utils/auth"
;
import
{
getToken
,
setToken
,
removeToken
}
from
"@/utils/auth"
;
import
{
ref
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
{
isBoolean
}
from
"lodash"
;
import
{
isBoolean
}
from
"lodash"
;
const
Layout
=
()
=>
import
(
"@/layout/index.vue"
);
const
Layout
=
()
=>
import
(
"@/layout/index.vue"
);
...
@@ -82,6 +82,7 @@ export const useUserStore = defineStore("user", () => {
...
@@ -82,6 +82,7 @@ export const useUserStore = defineStore("user", () => {
return
new
Promise
<
void
>
((
resolve
)
=>
{
return
new
Promise
<
void
>
((
resolve
)
=>
{
// logoutApi()
// logoutApi()
// .then(() => {
// .then(() => {
removeToken
();
user
.
token
=
""
;
user
.
token
=
""
;
user
.
roles
=
[];
user
.
roles
=
[];
user
.
permissions
=
[];
user
.
permissions
=
[];
...
...
src/views/login/index.vue
View file @
0b1d0535
...
@@ -358,6 +358,8 @@ function successLogin() {
...
@@ -358,6 +358,8 @@ function successLogin() {
router
.
push
({
path
:
"/system/user"
,
query
:
otherQueryParams
});
router
.
push
({
path
:
"/system/user"
,
query
:
otherQueryParams
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
loading
.
value
=
false
;
verifyFlag
.
value
=
false
;
// 验证失败,重新生成验证码
// 验证失败,重新生成验证码
getCaptcha
();
getCaptcha
();
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment