fix: 放开设备区版中运维cpu、jvm

* fix: 放开设备区版中运维cpu、jvm
This commit is contained in:
XieYongHong 2023-08-22 11:19:37 +08:00 committed by GitHub
parent 9e7e63f713
commit fa30b3feda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 12 deletions

View File

@ -95,9 +95,7 @@ const serverData = reactive({
const pickerTimeChange = () => { const pickerTimeChange = () => {
data.value.type = undefined; data.value.type = undefined;
if(props.isNoCommunity){ getCPUEcharts(data.value)
getCPUEcharts(data.value)
}
}; };
const echartsOptions = computed(() => { const echartsOptions = computed(() => {
@ -196,9 +194,7 @@ watch(
if (value === undefined) return; if (value === undefined) return;
const date = getTimeByType(value); const date = getTimeByType(value);
data.value.time = [dayjs(date), dayjs(new Date())]; data.value.time = [dayjs(date), dayjs(new Date())];
if (props.isNoCommunity) { getCPUEcharts(data.value);
getCPUEcharts(data.value);
}
}, },
{ immediate: true, deep: true }, { immediate: true, deep: true },
); );

View File

@ -95,9 +95,7 @@ const serverData = reactive({
const pickerTimeChange = () => { const pickerTimeChange = () => {
data.value.type = undefined; data.value.type = undefined;
if(props.isNoCommunity){ getJVMEcharts(data.value)
getJVMEcharts(data.value)
}
}; };
const getJVMEcharts = async (val: any) => { const getJVMEcharts = async (val: any) => {
@ -200,9 +198,7 @@ watch(
const date = getTimeByType(value); const date = getTimeByType(value);
data.value.time = [dayjs(date), dayjs(new Date())]; data.value.time = [dayjs(date), dayjs(new Date())];
if (props.isNoCommunity) { getJVMEcharts(data.value);
getJVMEcharts(data.value);
}
}, },
{ immediate: true, deep: true }, { immediate: true, deep: true },
); );