Skip to content

Commit 4b40515

Browse files
committed
Show placeholder when service name is empty (无/-)
1 parent c8b54fb commit 4b40515

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

web/strategy-switch-console/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,8 @@ <h2 data-i18n="summary">切换摘要</h2>
30023002
function accountMetaText(platform = state.selected) {
30033003
const account = selectedAccount(platform);
30043004
const targetName = account.target_name || account.key;
3005-
const service = account.service_name || derivedService(platform, targetName);
3005+
const raw = account.service_name || derivedService(platform, targetName);
3006+
const service = raw || (state.lang === "zh" ? "无" : "-");
30063007
return t("targetMeta")
30073008
.replace("{target}", targetName)
30083009
.replace("{service}", service)

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)