mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-05 09:55:25 +00:00
fix: value
This commit is contained in:
parent
1ca271f163
commit
6d0c336e5b
@ -111,13 +111,14 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
if (auto.value) {
|
if (auto.value) {
|
||||||
const f = RefreshOptions.filter((d: { value: string }) => d.value === freshOpt.value)[0] || {};
|
const f = RefreshOptions.filter((d: { value: string }) => d.value === freshOpt.value)[0] || {};
|
||||||
opt.auto = Number(auto.value) * 60 * 1000;
|
opt.auto = Number(f.value) * 60 * 1000;
|
||||||
if (f.step === TimeType.HOUR_TIME) {
|
if (f.step === TimeType.HOUR_TIME) {
|
||||||
opt.auto = Number(auto.value) * 60 * 60 * 1000;
|
opt.auto = Number(f.value) * 60 * 60 * 1000;
|
||||||
}
|
}
|
||||||
if (f.step === TimeType.DAY_TIME) {
|
if (f.step === TimeType.DAY_TIME) {
|
||||||
opt.auto = Number(auto.value) * 60 * 60 * 60 * 1000;
|
opt.auto = Number(f.value) * 60 * 60 * 60 * 1000;
|
||||||
}
|
}
|
||||||
|
console.log(opt.auto);
|
||||||
}
|
}
|
||||||
const config = JSON.stringify(opt);
|
const config = JSON.stringify(opt);
|
||||||
const path = `/page/${dashboardStore.layerId}/${
|
const path = `/page/${dashboardStore.layerId}/${
|
||||||
|
Loading…
Reference in New Issue
Block a user