From 50af9b3fb0d96500e7157609d3b89e9e4f7e893f Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Mon, 26 Oct 2026 22:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=9C=B0=E5=9B=BE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B7=BB=E5=8A=A0Key=E8=8E=B7=E5=8F=96=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/admin/SystemSettingsView.vue | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue index 261504a2..52a6b55d 100644 --- a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue +++ b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue @@ -115,7 +115,22 @@ {{ mapEnabled ? '已配置' : '停用' }}
-
{{ item.label }}{{ item.description }}
+
+ + {{ item.label }} + + 获取 Key + + + + {{ item.description }} +
{{ mapForms[item.key].configValue ? '已填写' : '待配置' }}
@@ -173,7 +188,7 @@ import { onMounted, reactive, ref } from 'vue' import { useRoute } from 'vue-router' import { message } from 'ant-design-vue' -import { ApiOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons-vue' +import { ApiOutlined, ExportOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons-vue' import { adminSystemParameterConfigApi, type SystemParameterConfigVO } from '@/api/admin' import { loadCachedAdminUserInfo } from '@/utils/admin-session' @@ -207,10 +222,10 @@ const sections = [ { key: 'services' as const, label: '服务接入', icon: ApiOutlined }, { key: 'account' as const, label: '当前账号', icon: UserOutlined } ] -const mapKeyRows: Array<{ key: MapKey; label: string; description: string; placeholder: string }> = [ - { key: 'tencentWeb', label: '腾讯 Web Key', description: '用于后台腾讯地图选点和 Web 展示。', placeholder: '填写腾讯 Web Key' }, - { key: 'amapWeb', label: '高德 Web Key', description: '用于后台高德地图选点和 Web 展示。', placeholder: '填写高德 Web Key' }, - { key: 'amapMini', label: '高德小程序 Key', description: '供 Salon 小程序后续地图能力使用。', placeholder: '填写高德小程序 Key' } +const mapKeyRows: Array<{ key: MapKey; label: string; description: string; placeholder: string; url: string }> = [ + { key: 'tencentWeb', label: '腾讯 Web Key', description: '用于后台腾讯地图选点和 Web 展示。', placeholder: '填写腾讯 Web Key', url: 'https://lbs.qq.com/dev/console/key/manage' }, + { key: 'amapWeb', label: '高德 Web Key', description: '用于后台高德地图选点和 Web 展示。', placeholder: '填写高德 Web Key', url: 'https://console.amap.com/dev/key/app' }, + { key: 'amapMini', label: '高德小程序 Key', description: '供 Salon 小程序后续地图能力使用。', placeholder: '填写高德小程序 Key', url: 'https://console.amap.com/dev/key/app' } ] const defaultPasswordForm = reactive({ @@ -424,6 +439,10 @@ onMounted(() => { .setting-row--last { border-radius: 0 0 10px 10px; } .setting-copy { display: grid; gap: 4px; min-width: 0; } .setting-copy strong { font-size: 13px; } +.setting-copy__link { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; color: var(--theme-primary-action); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; } +.setting-copy__link:hover { text-decoration: underline; } +.setting-copy__link:focus-visible { outline: 2px solid color-mix(in srgb, var(--theme-primary) 55%, transparent); outline-offset: 2px; border-radius: 3px; } +.setting-copy__link :deep(.anticon) { font-size: 10px; } .setting-copy span { color: var(--admin-mobile-muted); font-size: 11px; line-height: 1.45; } .setting-control { display: flex; align-items: center; gap: 9px; min-width: 0; } .setting-control > :deep(.ant-select) { width: 100%; }