diff --git a/src/locale/en-US.ts b/src/locale/en-US.ts index 4121852..7c62eb5 100644 --- a/src/locale/en-US.ts +++ b/src/locale/en-US.ts @@ -5,7 +5,7 @@ export default { 'menu.setup': 'Setup', 'menu.setup.process': 'Process', 'menu.setup.output': 'Output', - 'menu.firmware': 'Flash Firmware', + 'menu.tool': 'Tool', 'menu.data': 'Data Acquisition', 'menu.data.vision': 'Vision', 'menu.data.sensor': 'Sensor', @@ -20,4 +20,3 @@ export default { ...localeSettings, ...localeWorkplace, }; - diff --git a/src/locale/zh-CN.ts b/src/locale/zh-CN.ts index 55da1e3..9dd8158 100644 --- a/src/locale/zh-CN.ts +++ b/src/locale/zh-CN.ts @@ -5,7 +5,7 @@ export default { 'menu.setup': '设置', 'menu.setup.process': '工作台', 'menu.setup.output': '输出', - 'menu.firmware': '烧录固件', + 'menu.tool': '工具', 'menu.data': '数据采集', 'menu.data.vision': '视觉', 'menu.data.sensor': '传感器', diff --git a/src/router/routes/modules/esptool.ts b/src/router/routes/modules/esptool.ts new file mode 100644 index 0000000..5e3e878 --- /dev/null +++ b/src/router/routes/modules/esptool.ts @@ -0,0 +1,31 @@ +import { DEFAULT_LAYOUT } from '../base'; +import { AppRouteRecordRaw } from '../types'; + +const ESPTOOL: AppRouteRecordRaw = { + path: '/esptool', + name: 'esptool', + component: DEFAULT_LAYOUT, + redirect: '/esptool/esptool', + meta: { + locale: 'menu.tool', + requiresAuth: true, + icon: 'icon-tool', + order: 1, + hideChildrenInMenu: true, + }, + children: [ + { + path: 'esptool', + name: 'esptool', + component: () => import('@/views/esptool/index.vue'), + meta: { + locale: 'menu.tool', + requiresAuth: true, + roles: ['*'], + activeMenu: 'esptool', + }, + }, + ], +}; + +export default ESPTOOL; diff --git a/src/router/routes/modules/firmware.ts b/src/router/routes/modules/firmware.ts deleted file mode 100644 index 88538cc..0000000 --- a/src/router/routes/modules/firmware.ts +++ /dev/null @@ -1,31 +0,0 @@ -// import { DEFAULT_LAYOUT } from '../base'; -// import { AppRouteRecordRaw } from '../types'; - -// const FIRMWARE: AppRouteRecordRaw = { -// path: '/firmware', -// name: 'firmware', -// component: DEFAULT_LAYOUT, -// redirect: '/firmware/firmware', -// meta: { -// locale: 'menu.firmware', -// requiresAuth: true, -// icon: 'icon-thunderbolt', -// order: 1, -// hideChildrenInMenu: true, -// }, -// children: [ -// { -// path: 'firmware', -// name: 'firmware', -// component: () => import('@/views/firmware/index.vue'), -// meta: { -// locale: 'menu.firmware', -// requiresAuth: true, -// roles: ['*'], -// activeMenu: 'firmware', -// }, -// }, -// ], -// }; - -// export default FIRMWARE; diff --git a/src/views/firmware/index.vue b/src/views/esptool/index.vue similarity index 96% rename from src/views/firmware/index.vue rename to src/views/esptool/index.vue index e6b84d6..a81f06e 100644 --- a/src/views/firmware/index.vue +++ b/src/views/esptool/index.vue @@ -1,6 +1,6 @@