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',
name: 'SystemTools',
component: () => import('@/views/settings/Tool'),
hidden: () => {
return !store.getters.publicSettings['TOOL_USER_ENABLED']
},
meta: {
title: i18n.t('SystemTools'),
icon: 'tools',

View File

@@ -38,7 +38,7 @@ export default {
getSubmenu() {
return [
{
title: this.$t('GenericSetting'),
title: this.$t('General'),
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 Tcpdump from './Tcpdump'
import Traceroute from './Traceroute'
import Basic from './Basic'
export default {
components: {
@@ -26,15 +27,20 @@ export default {
Telnet,
Nmap,
Tcpdump,
Traceroute
Traceroute,
Basic
},
data() {
return {
timer: null,
currentTime: '',
loading: true,
activeMenu: 'Ping',
activeMenu: 'Basic',
submenu: [
{
title: this.$t('Basic'),
name: 'Basic'
},
{
title: 'Ping',
name: 'Ping'