Skip to content

Commit 62bacdf

Browse files
author
will.zhang
committed
show device id instead of name
1 parent 1b5ad50 commit 62bacdf

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/components/Device/DeviceAdbShellDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ watch(() => visible.value, async (v) => {
3131
term.loadAddon(fitAddon);
3232
term.open(terminal.value as HTMLElement)
3333
term.clear()
34-
term.writeln(t('进入设备 {name} 的命令行', {name: device.value?.name}))
34+
term.writeln(t('进入设备 {id} 的命令行', {id: device.value?.id}))
3535
term.writeln('==========================================')
3636
nextTick(() => {
3737
fitAddon.fit()
@@ -83,7 +83,7 @@ defineExpose({
8383
:footer="false"
8484
title-align="start">
8585
<template #title>
86-
{{ $t('设备 {name} 命令行', {name: device?.name}) }}
86+
{{ $t('设备 {id} 命令行', {id: device?.id}) }}
8787
</template>
8888
<div style="margin:-0.8rem;border-radius:0.5rem;overflow:hidden;background:#000;">
8989
<div class="h-full p-2 overflow-hidden">

src/components/Device/DeviceSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ defineExpose({
6767
title-align="start">
6868
<template #title>
6969
<icon-mobile/>
70-
{{ $t('设备') }} {{ device?.name }}
70+
{{ $t('设备') }} {{ device?.id }}
7171
</template>
7272
<template #footer>
7373
<a-button type="primary" @click="doSubmit">

src/lang/en-US.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"3eb6a611": "Default 8000000(8M), Support Unit K、M",
136136
"40e57868": "Detail",
137137
"4148da61": "Request error",
138-
"42554fbd": "Shell of {name} started",
138+
"42554fbd": "Shell of {id} started",
139139
"42c281d4": "Auto",
140140
"42ed4ed0": "Connect Device",
141141
"42fe6375": "Select Path",
@@ -163,7 +163,7 @@
163163
"67ae246d": "Device Edit Successful",
164164
"67bf9872": "Add as network device",
165165
"69f87f08": "Open Command Line",
166-
"6a51c6b3": "Device {name} shell",
166+
"6a51c6b3": "Device {id} shell",
167167
"6f369807": "Screenshot Editor",
168168
"6f506676": "Device not found",
169169
"73b90d88": "Already mirroring",

src/lang/source.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"视频比特率": "23886069",
172172
"记住我的选择": "160fdc0e",
173173
"设备": "00114509",
174-
"设备 {name} 命令行": "6a51c6b3",
174+
"设备 {id} 命令行": "6a51c6b3",
175175
"设备未连接": "24ba3978",
176176
"设备版本过低,不支持此功能": "3dad1885",
177177
"设备编辑成功": "67ae246d",
@@ -189,7 +189,7 @@
189189
"还没有设备,使用USB连接电脑开始使用~": "7b11c571",
190190
"进入OTG模式": "3a80871a",
191191
"进入OTG模式成功": "639109f5",
192-
"进入设备 {name} 的命令行": "42554fbd",
192+
"进入设备 {id} 的命令行": "42554fbd",
193193
"连接中": "02286f86",
194194
"连接成功": "42e83c56",
195195
"连接网络设备": "66ddc2bb",

src/lang/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"3eb6a611": "默认 8000000(8M),支持支持单位 K、M",
160160
"40e57868": "设备设置",
161161
"4148da61": "请求错误",
162-
"42554fbd": "进入设备 {name} 的命令行",
162+
"42554fbd": "进入设备 {id} 的命令行",
163163
"42bad8e1": "退出软件",
164164
"42c281d4": "跟随系统",
165165
"42e83c56": "连接成功",
@@ -197,7 +197,7 @@
197197
"67ae246d": "设备编辑成功",
198198
"67bf9872": "正在添加为网络设备",
199199
"69f87f08": "打开命令行",
200-
"6a51c6b3": "设备 {name} 命令行",
200+
"6a51c6b3": "设备 {id} 命令行",
201201
"6bf53f2e": "打开摄像头成功",
202202
"6f369807": "截图编辑器",
203203
"6f506676": "找不到设备",

0 commit comments

Comments
 (0)