Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnL4 committed Nov 29, 2023
1 parent 871bb40 commit 3bd3436
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/locale/en-US/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
'workplace.device.card.aimodel': 'Upload AI model',
'workplace.device.card.binFile': 'Upload Bin files',
'workplace.device.btn.upload': 'Upload',
'workplace.device.card.esptool': 'ESP Tool',
'workplace.device.card.tool': 'Flash Tool',
'workplace.device.message.firmware.no': 'No firmware',
'workplace.device.message.model.no': 'Please select a model',
'workplace.device.message.model.current':
Expand Down
2 changes: 1 addition & 1 deletion src/locale/zh-CN/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
'workplace.device.card.aimodel': '上传AI模型',
'workplace.device.card.binFile': '上传Bin文件',
'workplace.device.btn.upload': '上传',
'workplace.device.card.esptool': 'ESP Tool',
'workplace.device.card.tool': '烧录工具',
'workplace.device.message.firmware.no': '没有固件',
'workplace.device.message.model.no': '请选择模型',
'workplace.device.message.model.current': '设备正在运行当前模型',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/utils/components/Tools.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<a-spin :loading="loading" :tip="loadingTip" class="item-card">
<a-card class="general-card" :title="$t('workplace.device.card.esptool')">
<a-card class="general-card" :title="$t('workplace.device.card.tool')">
<template #extra>
<a-button type="primary" status="danger" @click="handleEraseFlash">
{{ $t('workplace.firmware.eraseflash') }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { RouteRecordRaw } from 'vue-router';
import { DEFAULT_LAYOUT } from '../base';

const ESPTOOL: RouteRecordRaw = {
path: '/esptool',
name: 'esptool',
const TOOL: RouteRecordRaw = {
path: '/tool',
name: 'tool',
component: DEFAULT_LAYOUT,
redirect: '/esptool/esptool',
redirect: '/tool/tool',
meta: {
locale: 'menu.tool',
requiresAuth: true,
Expand All @@ -15,17 +15,17 @@ const ESPTOOL: RouteRecordRaw = {
},
children: [
{
path: 'esptool',
name: 'esptool',
path: 'tool',
name: 'tool',
component: () => import('@/pages/utils/index.vue'),
meta: {
locale: 'menu.tool',
requiresAuth: true,
roles: ['*'],
activeMenu: 'esptool',
activeMenu: 'tool',
},
},
],
};

export default ESPTOOL;
export default TOOL;

0 comments on commit 3bd3436

Please sign in to comment.