mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 优化安全设置,保存后刷新页面
This commit is contained in:
@@ -39,7 +39,6 @@ export default [
|
||||
},
|
||||
{
|
||||
path: 'databases',
|
||||
name: 'DatabaseAppList',
|
||||
component: empty,
|
||||
redirect: '',
|
||||
meta: { title: i18n.t('route.DatabaseApp') },
|
||||
@@ -75,7 +74,6 @@ export default [
|
||||
},
|
||||
{
|
||||
path: 'kubernetes',
|
||||
name: 'KubernetesAppList',
|
||||
component: empty,
|
||||
meta: { title: i18n.t('route.KubernetesApp') },
|
||||
children: [
|
||||
|
||||
@@ -6,7 +6,6 @@ import { BASE_URL } from '@/utils/common'
|
||||
export default [
|
||||
{
|
||||
path: 'sessions',
|
||||
name: 'SessionList',
|
||||
component: empty,
|
||||
redirect: '',
|
||||
meta: { title: i18n.t('route.Sessions'), permissions: [rolec.PERM_AUDIT] },
|
||||
@@ -75,7 +74,6 @@ export default [
|
||||
},
|
||||
{
|
||||
path: 'storages',
|
||||
name: 'Storage',
|
||||
component: empty,
|
||||
meta: { activeMenu: '/terminal/terminal', permissions: [rolec.PERM_SUPER] },
|
||||
redirect: '',
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
:fields-meta="fieldsMeta"
|
||||
:submit-method="submitMethod"
|
||||
:has-detail-in-msg="false"
|
||||
@submitSuccess="onSubmitSuccess()"
|
||||
/>
|
||||
</IBox>
|
||||
</template>
|
||||
@@ -86,6 +87,9 @@ export default {
|
||||
methods: {
|
||||
submitMethod() {
|
||||
return 'patch'
|
||||
},
|
||||
onSubmitSuccess() {
|
||||
window.location.reload()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user