mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-17 10:07:36 +00:00
Fix: Add the prefix for http url (#471)
This commit is contained in:
parent
7dcc67f455
commit
1f651cf528
@ -14,9 +14,9 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
const PREFIX = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test" ? "/api" : "";
|
||||||
export const HttpURL = {
|
export const HttpURL = {
|
||||||
ClusterNodes: `/api/status/cluster/nodes`,
|
ClusterNodes: `${PREFIX}/status/cluster/nodes`,
|
||||||
ConfigTTL: `/api/status/config/ttl`,
|
ConfigTTL: `${PREFIX}/status/config/ttl`,
|
||||||
DebuggingConfigDump: `/api/debugging/config/dump`,
|
DebuggingConfigDump: `${PREFIX}/debugging/config/dump`,
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,13 @@ limitations under the License. -->
|
|||||||
:row-style="{ backgroundColor: 'var(--layout-background)' }"
|
:row-style="{ backgroundColor: 'var(--layout-background)' }"
|
||||||
>
|
>
|
||||||
<el-table-column v-for="item in MetricsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
|
<el-table-column v-for="item in MetricsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
|
||||||
<template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
|
{{
|
||||||
|
settingsStore.configTTL?.metrics
|
||||||
|
? settingsStore.configTTL.metrics[item.value] < 0
|
||||||
|
? "N/A"
|
||||||
|
: (settingsStore.configTTL?.metrics ?? {})[item.value]
|
||||||
|
: "N/A"
|
||||||
|
}}
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="label">{{ t("recordsTTL") }}</div>
|
<div class="label">{{ t("recordsTTL") }}</div>
|
||||||
@ -31,7 +37,13 @@ limitations under the License. -->
|
|||||||
:row-style="{ backgroundColor: 'var(--layout-background)' }"
|
:row-style="{ backgroundColor: 'var(--layout-background)' }"
|
||||||
>
|
>
|
||||||
<el-table-column v-for="item in RecordsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
|
<el-table-column v-for="item in RecordsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
|
||||||
<template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
|
{{
|
||||||
|
settingsStore.configTTL?.records
|
||||||
|
? settingsStore.configTTL?.records[item.value] < 0
|
||||||
|
? "N/A"
|
||||||
|
: (settingsStore.configTTL?.records || {})[item.value]
|
||||||
|
: "N/A"
|
||||||
|
}}
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user