Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit f59ce14

Browse files
committed
Merge branch 'master' of https://github.com/MCSManager/UI
2 parents f841937 + 9175ba9 commit f59ce14

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/views/InstanceDetail.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ Copyright (C) 2022 MCSManager <[email protected]>
123123
<div class="sub-title">
124124
<div class="sub-title-title">{{ $t("instancesDetail.updateCmd") }}</div>
125125
<div class="sub-title-info">
126-
{{ $t("instancesDetail.updateCmdInfo") }}
126+
{{ $t("instancesDetail.updateCmdInfo", { t: "${mcsm_workspace}" }) }}
127127
</div>
128128
</div>
129129
<el-input
130130
v-model="instanceInfo.config.updateCommand"
131131
type="text"
132-
:placeholder="$t('instancesDetail.updateCmdExample')"
132+
:placeholder="defaultInstallCommand"
133133
>
134134
</el-input>
135135
</el-col>
@@ -555,7 +555,8 @@ export default {
555555
imageListLoading: false,
556556
networkModeListLoading: false,
557557
commandAssistPanel: false,
558-
558+
defaultInstallCommand:
559+
'D:/SteamCMD/steamcmd.exe +login anonymous +force_install_dir "${mcsm_workspace}" "+app_update 380870 validate" +quit',
559560
dockerImages: [],
560561
561562
// Docker port configuration table fields

src/language/zh_cn.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@
307307
"cwdInfo": "实例运行的工作目录,可填绝对路径与相对路径",
308308
"cwdExample": "例如: D:/MyServers/0001",
309309
"updateCmd": "更新/安装程序文件命令",
310-
"updateCmdInfo": "当用户执行更新/安装操作时,将会执行此命令,${mcsm_workspace} 代表工作目录,为空则不提供此功能",
311-
"updateCmdExample": "例如: \"D:/SteamCMD/steamcmd.exe\" +login anonymous +force_install_dir \"${mcsm_workspace}\" \"+app_update 380870 validate\" +quit",
310+
"updateCmdInfo": "当用户执行更新/安装操作时,将会执行此命令,{t} 代表工作目录,为空则不提供此功能",
312311
"ie": "终端输入编码",
313312
"ieInfo": "命令发送编码,重启实例生效",
314313
"oe": "终端输出编码",

0 commit comments

Comments
 (0)