Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
jinmao-community-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ddda95e1
authored
Apr 27, 2021
by
changjin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目切换
parent
0c6cd3c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/components/common/Header.vue
+2
-2
src/components/page/system/roleList.vue
+1
-0
No files found.
src/components/common/Header.vue
View file @
ddda95e1
...
...
@@ -96,7 +96,7 @@ export default {
this
.
$axios
.
get
(
'/baseInfo/initPersonalMenu?projectId='
+
projectId
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'0'
)
{
this
.
data
=
res
.
data
.
data
window
.
sessionStorage
.
setItem
(
'projectId'
,
res
.
data
.
data
.
projectId
)
window
.
sessionStorage
.
setItem
(
'projectId'
,
projectId
)
}
})
}
else
{
...
...
@@ -111,8 +111,8 @@ export default {
// 选择项目
choose
(
item
)
{
this
.
data
.
projectName
=
item
.
projectName
this
.
getData
(
item
.
id
)
window
.
sessionStorage
.
setItem
(
'projectId'
,
item
.
id
)
this
.
getData
(
item
.
id
)
window
.
location
.
reload
()
},
// 退出登录
...
...
src/components/page/system/roleList.vue
View file @
ddda95e1
...
...
@@ -67,6 +67,7 @@ export default {
}),
created
()
{
this
.
projectId
=
window
.
sessionStorage
.
getItem
(
'projectId'
)
console
.
log
(
this
.
projectId
)
this
.
height
=
(
document
.
documentElement
.
clientHeight
-
200
)
+
'px'
this
.
getData
()
this
.
getPermissionsBtn
()
...
...
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