perf: i18n bai

This commit is contained in:
Bai
2024-05-27 11:12:54 +08:00
parent 28a2248491
commit f6ddd44ccb
4 changed files with 48 additions and 3 deletions

View File

@@ -249,6 +249,9 @@ export default {
path: '/workbench/system-tools', path: '/workbench/system-tools',
name: 'SystemTools', name: 'SystemTools',
component: () => import('@/views/settings/Tool'), component: () => import('@/views/settings/Tool'),
hidden: () => {
return !store.getters.publicSettings['TOOL_USER_ENABLED']
},
meta: { meta: {
title: i18n.t('SystemTools'), title: i18n.t('SystemTools'),
icon: 'tools', icon: 'tools',

View File

@@ -38,7 +38,7 @@ export default {
getSubmenu() { getSubmenu() {
return [ return [
{ {
title: this.$t('GenericSetting'), title: this.$t('General'),
name: 'Lina' name: 'Lina'
}, },
{ {

View File

@@ -0,0 +1,36 @@
<template>
<IBox>
<GenericCreateUpdateForm
:has-detail-in-msg="false"
:submit-method="submitMethod"
v-bind="$data"
/>
</IBox>
</template>
<script>
import { IBox } from '@/components'
import GenericCreateUpdateForm from '@/layout/components/GenericCreateUpdateForm/index.vue'
export default {
name: 'Basic',
components: {
GenericCreateUpdateForm,
IBox
},
data() {
return {
fields: ['TOOL_USER_ENABLED'],
url: '/api/v1/settings/setting/?category=tool'
}
},
methods: {
submitMethod() {
return 'patch'
}
}
}
</script>
<style scoped>
</style>

View File

@@ -18,6 +18,7 @@ import Telnet from './Telnet'
import Nmap from './Nmap' import Nmap from './Nmap'
import Tcpdump from './Tcpdump' import Tcpdump from './Tcpdump'
import Traceroute from './Traceroute' import Traceroute from './Traceroute'
import Basic from './Basic'
export default { export default {
components: { components: {
@@ -26,15 +27,20 @@ export default {
Telnet, Telnet,
Nmap, Nmap,
Tcpdump, Tcpdump,
Traceroute Traceroute,
Basic
}, },
data() { data() {
return { return {
timer: null, timer: null,
currentTime: '', currentTime: '',
loading: true, loading: true,
activeMenu: 'Ping', activeMenu: 'Basic',
submenu: [ submenu: [
{
title: this.$t('Basic'),
name: 'Basic'
},
{ {
title: 'Ping', title: 'Ping',
name: 'Ping' name: 'Ping'