Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
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
poc
poc-fe
Commits
9c0eb1d4
Commit
9c0eb1d4
authored
Oct 28, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
chore: 应用设置页直接返回 See merge request
!23
parents
7d10f23f
59401c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
page-narbar.vue
...nal-space/personal-app-setting/components/page-narbar.vue
+5
-24
No files found.
src/views/personal-space/personal-app-setting/components/page-narbar.vue
View file @
9c0eb1d4
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
h
,
onMounted
,
readonly
,
ref
,
watch
}
from
'vue'
import
{
computed
,
h
,
onMounted
,
readonly
,
ref
,
watch
}
from
'vue'
import
{
useRouter
}
from
'vue-router'
import
{
useRouter
}
from
'vue-router'
import
{
DropdownOption
}
from
'naive-ui'
import
{
useI18n
}
from
'vue-i18n'
import
{
useI18n
}
from
'vue-i18n'
import
{
sidebarMenus
}
from
'@/router/index'
import
CustomIcon
from
'@/components/custom-icon/custom-icon.vue'
import
CustomIcon
from
'@/components/custom-icon/custom-icon.vue'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
usePersonalAppConfigStore
}
from
'@/store/modules/personal-app-config'
import
{
usePersonalAppConfigStore
}
from
'@/store/modules/personal-app-config'
...
@@ -56,17 +54,6 @@ const agentAppOptionList = [
...
@@ -56,17 +54,6 @@ const agentAppOptionList = [
const
personalAppConfig
=
computed
(()
=>
personalAppConfigStore
.
$state
)
const
personalAppConfig
=
computed
(()
=>
personalAppConfigStore
.
$state
)
const
menuOptions
=
computed
(()
=>
{
return
sidebarMenus
.
map
((
item
)
=>
{
return
{
label
:
()
=>
h
(
'span'
,
{},
t
(
item
.
label
)),
key
:
item
.
key
,
routeName
:
item
.
routeName
,
icon
:
()
=>
h
(
CustomIcon
,
{
icon
:
item
.
icon
||
'icon-home'
}),
}
})
})
const
isShowModifiedTime
=
computed
(()
=>
{
const
isShowModifiedTime
=
computed
(()
=>
{
return
isUpdateAgentAppConfig
.
value
&&
personalAppConfigStore
.
baseInfo
.
agentId
return
isUpdateAgentAppConfig
.
value
&&
personalAppConfigStore
.
baseInfo
.
agentId
})
})
...
@@ -109,10 +96,6 @@ onMounted(() => {
...
@@ -109,10 +96,6 @@ onMounted(() => {
}
}
})
})
function
handleMenuSelect
(
_key
:
number
,
option
:
DropdownOption
)
{
router
.
replace
({
name
:
option
.
routeName
as
string
})
}
function
handleBackPreviousPage
()
{
function
handleBackPreviousPage
()
{
router
.
go
(
-
1
)
router
.
go
(
-
1
)
}
}
...
@@ -171,13 +154,11 @@ async function handlePublishApplication() {
...
@@ -171,13 +154,11 @@ async function handlePublishApplication() {
<
template
>
<
template
>
<header
class=
"h-navbar flex w-full items-center justify-between bg-[#f2f5f9] px-5 shadow-[inset_0_-1px_#e8e9eb]"
>
<header
class=
"h-navbar flex w-full items-center justify-between bg-[#f2f5f9] px-5 shadow-[inset_0_-1px_#e8e9eb]"
>
<div
class=
"flex flex-1 items-center"
>
<div
class=
"flex flex-1 items-center"
>
<NDropdown
trigger=
"hover"
:options=
"menuOptions"
@
select=
"handleMenuSelect"
>
<CustomIcon
<CustomIcon
icon=
"weui:back-outlined"
icon=
"weui:back-outlined"
class=
"hover:text-theme-color mr-5 cursor-pointer outline-none"
class=
"hover:text-theme-color mr-5 outline-none"
@
click=
"handleBackPreviousPage"
@
click=
"handleBackPreviousPage"
/>
/>
</NDropdown>
<div
class=
"flex flex-col items-start justify-center"
>
<div
class=
"flex flex-col items-start justify-center"
>
<NPopover
trigger=
"hover"
>
<NPopover
trigger=
"hover"
>
...
...
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