mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: after refreshing the page, the drop-down menu will appear accidentally. #925
This commit is contained in:
parent
83c9af8cad
commit
2e284c5aa1
2 changed files with 7 additions and 6 deletions
|
@ -9,7 +9,7 @@ import HeaderLayout from './HeaderLayout.vue'
|
||||||
import SideBar from './SideBar.vue'
|
import SideBar from './SideBar.vue'
|
||||||
|
|
||||||
const drawerVisible = ref(false)
|
const drawerVisible = ref(false)
|
||||||
const collapsed = ref(collapse())
|
const collapsed = ref(false)
|
||||||
const hideLayoutSidebar = ref(false)
|
const hideLayoutSidebar = ref(false)
|
||||||
|
|
||||||
function _init() {
|
function _init() {
|
||||||
|
|
|
@ -12,34 +12,35 @@ const columns: Column[] = [{
|
||||||
if (args.text === NotificationTypeT.Error) {
|
if (args.text === NotificationTypeT.Error) {
|
||||||
return (
|
return (
|
||||||
<Tag color="error">
|
<Tag color="error">
|
||||||
{ $gettext('Error') }
|
{$gettext('Error')}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else if (args.text === NotificationTypeT.Warning) {
|
else if (args.text === NotificationTypeT.Warning) {
|
||||||
return (
|
return (
|
||||||
<Tag color="warning">
|
<Tag color="warning">
|
||||||
{ $gettext('Warning') }
|
{$gettext('Warning')}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else if (args.text === NotificationTypeT.Info) {
|
else if (args.text === NotificationTypeT.Info) {
|
||||||
return (
|
return (
|
||||||
<Tag color="info">
|
<Tag color="info">
|
||||||
{ $gettext('Info')}
|
{$gettext('Info')}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else if (args.text === NotificationTypeT.Success) {
|
else if (args.text === NotificationTypeT.Success) {
|
||||||
return (
|
return (
|
||||||
<Tag color="success">
|
<Tag color="success">
|
||||||
{ $gettext('Success') }
|
{$gettext('Success')}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sorter: true,
|
sorter: true,
|
||||||
pithy: true,
|
pithy: true,
|
||||||
|
width: 100,
|
||||||
}, {
|
}, {
|
||||||
title: () => $gettext('Title'),
|
title: () => $gettext('Title'),
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
|
@ -53,7 +54,7 @@ const columns: Column[] = [{
|
||||||
dataIndex: 'details',
|
dataIndex: 'details',
|
||||||
customRender: detailRender,
|
customRender: detailRender,
|
||||||
pithy: true,
|
pithy: true,
|
||||||
width: 300,
|
width: 500,
|
||||||
}, {
|
}, {
|
||||||
title: () => $gettext('Created at'),
|
title: () => $gettext('Created at'),
|
||||||
dataIndex: 'created_at',
|
dataIndex: 'created_at',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue