fix: bug#10965

This commit is contained in:
jackhoo_98 2023-03-29 16:14:16 +08:00
parent f41fa6d279
commit 51da808ae7
4 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ const data: any = ref({
const pickerTimeChange = () => {
data.value.time.type = undefined;
console.log(1);
};
const getEcharts = async (val: any) => {
@ -108,6 +109,7 @@ const handleOptions = (x = [], y = []) => {
watch(
() => data.value.time.type,
(value) => {
if (value === undefined) return;
const date = getTimeByType(value);
data.value.time.time = [dayjs(date), dayjs(new Date())];
},

View File

@ -165,6 +165,7 @@ const handleCpuOptions = (optionsData: any, xAxis: any) => {
watch(
() => data.value.type,
(value) => {
if (value === undefined) return;
const date = getTimeByType(value);
data.value.time = [dayjs(date), dayjs(new Date())];
},

View File

@ -169,6 +169,7 @@ const handleJVMOptions = (optionsData: any, xAxis: any) => {
watch(
() => data.value.type,
(value) => {
if (value === undefined) return;
const date = getTimeByType(value);
data.value.time = [dayjs(date), dayjs(new Date())];
},

View File

@ -183,6 +183,7 @@ const handleNetworkOptions = (optionsData: any, xAxis: any) => {
watch(
() => data.value.time.type,
(value) => {
if (value === undefined) return;
const date = getTimeByType(value);
data.value.time.time = [dayjs(date), dayjs(new Date())];
},