diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql index bdf68697a7..e74c2e25cf 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql @@ -328,7 +328,7 @@ VALUES (UUID_SHORT(), 'project_member', 'PROJECT_TEST_PLAN:READ+EXECUTE'); -- 初始化当前站点配置 INSERT into system_parameter values('base.url', 'http://127.0.0.1:8081', 'text'); -- 初始化prometheus站点配置 -INSERT into system_parameter values('base.prometheus.host', 'http://ms-prometheus:9090', 'text'); +INSERT into system_parameter values('base.prometheus.host', 'http://prometheus:9090', 'text'); -- 初始化资源池 INSERT INTO test_resource_pool (id, name, type, description, enable, create_time, update_time, create_user, api_test, load_test, ui_test, all_org, deleted) VALUES (uuid_short(), 'LOCAL', 'Node', '系统初始化资源池', true, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, 'admin', true, true, true, true, false); diff --git a/frontend/src/views/setting/system/config/components/baseConfig.vue b/frontend/src/views/setting/system/config/components/baseConfig.vue index 7bb454b075..3b32a3cfb3 100644 --- a/frontend/src/views/setting/system/config/components/baseConfig.vue +++ b/frontend/src/views/setting/system/config/components/baseConfig.vue @@ -222,13 +222,13 @@ const baseFormRef = ref(); const baseInfo = ref({ url: 'http://127.0.0.1:8081', - prometheusHost: 'http://ms-prometheus:9090', + prometheusHost: 'http://prometheus:9090', }); const baseInfoForm = ref({ ...baseInfo.value }); const baseInfoDescs = ref([]); // 默认示例 const defaultUrl = 'https://metersphere.com'; - const defaultPrometheus = 'http://ms-prometheus:9090'; + const defaultPrometheus = 'http://prometheus:9090'; function fillDefaultUrl() { baseInfoForm.value.url = defaultUrl;