diff --git a/resource/sites/fsm.name/config.json b/resource/sites/fsm.name/config.json index e973df8a6..b06eed833 100644 --- a/resource/sites/fsm.name/config.json +++ b/resource/sites/fsm.name/config.json @@ -9,6 +9,7 @@ "schema": "common", "host": "fsm.name", "tokenRequired": true, + "tokenTip": "在 https://fsm.name/API 获取", "formerHosts": [ "nextpt.net" ], diff --git a/resource/sites/milkie.cc/config.json b/resource/sites/milkie.cc/config.json index 75ed9ccf0..03ae4fded 100644 --- a/resource/sites/milkie.cc/config.json +++ b/resource/sites/milkie.cc/config.json @@ -10,6 +10,7 @@ "schema": "common", "host": "milkie.cc", "tokenRequired": true, + "tokenTip": "在 https://milkie.cc/settings/security 获取 API key", "collaborator": [ "tomyangsh" ], diff --git a/resource/sites/xp.m-team.cc/config.json b/resource/sites/xp.m-team.cc/config.json index 9ed238772..a464cf303 100644 --- a/resource/sites/xp.m-team.cc/config.json +++ b/resource/sites/xp.m-team.cc/config.json @@ -23,6 +23,7 @@ "https://mtapi.m-team.cc/" ], "tokenRequired": true, + "tokenTip": "在控制台-实验室获取存取令牌", "formerHosts": [ "xp.m-team.io", "pt.m-team.cc", diff --git a/src/options/views/settings/Sites/Editor.vue b/src/options/views/settings/Sites/Editor.vue index f98f157df..2b4ace9c9 100644 --- a/src/options/views/settings/Sites/Editor.vue +++ b/src/options/views/settings/Sites/Editor.vue @@ -165,7 +165,7 @@ v-model="site.authToken" :disabled="!site.tokenRequired" :rules="site.tokenRequired ? rules.require : []" :label="$t('settings.sites.editor.authToken')" - :placeholder="$t('settings.sites.editor.authTokenTip')" + :placeholder="site.tokenTip ? site.tokenTip : $t('settings.sites.editor.authTokenTip')" >