Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3918080f
authored
Aug 31, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面跳转方法调整
1 parent
f10d9758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
src/views/layout.vue
src/views/layout.vue
View file @
3918080
...
@@ -10,8 +10,10 @@
...
@@ -10,8 +10,10 @@
class=
"logo"
class=
"logo"
/>
/>
<div
class=
"wrap-right"
>
<div
class=
"wrap-right"
>
<div
class=
"right-menu"
@
click=
"goConfigPage"
>
公共配置
</div>
<div
class=
"right-menu"
@
click=
"goConfigPage"
>
<div
class=
"right-menu"
@
click=
"goEnvironmentPage"
>
环境配置
</div>
{{
pageFlag
==
0
?
"公共配置"
:
"环境配置"
}}
</div>
<!--
<div
class=
"right-menu"
@
click=
"goEnvironmentPage"
>
环境配置
</div>
-->
<el-dropdown>
<el-dropdown>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
{{
userName
}}
{{
userName
}}
...
@@ -87,15 +89,21 @@ const account = () => {
...
@@ -87,15 +89,21 @@ const account = () => {
});
});
};
};
// 跳往公共配置项页面
const
pageFlag
=
ref
(
0
);
const
goConfigPage
=
()
=>
{
router
.
replace
({
name
:
"publickconfig"
});
}
// 跳转环境配置
const
goConfigPage
=
()
=>
{
const
goEnvironmentPage
=
()
=>
{
switch
(
pageFlag
.
value
)
{
router
.
replace
({
name
:
"project"
});
// 跳往公共配置项页面
}
case
0
:
pageFlag
.
value
=
1
;
router
.
replace
({
name
:
"publickconfig"
});
break
;
// 跳转环境配置
case
1
:
pageFlag
.
value
=
0
;
router
.
replace
({
name
:
"project"
});
}
};
// 注销账号
// 注销账号
const
delUser
=
async
()
=>
{
const
delUser
=
async
()
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment