mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 20:45:24 +00:00
fix fresh
This commit is contained in:
parent
dc35b8c1e9
commit
3b921aa911
@ -75,6 +75,7 @@ import { useAppStoreWithOut } from "@/store/modules/app";
|
|||||||
import timeFormat from "@/utils/timeFormat";
|
import timeFormat from "@/utils/timeFormat";
|
||||||
import { Languages } from "@/constants/data";
|
import { Languages } from "@/constants/data";
|
||||||
import Selector from "@/components/Selector.vue";
|
import Selector from "@/components/Selector.vue";
|
||||||
|
import getLocalTime from "@/utils/localtime";
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
const appStore = useAppStoreWithOut();
|
const appStore = useAppStoreWithOut();
|
||||||
@ -88,8 +89,11 @@ appStore.setPageTitle("Setting");
|
|||||||
const handleReload = () => {
|
const handleReload = () => {
|
||||||
const gap =
|
const gap =
|
||||||
appStore.duration.end.getTime() - appStore.duration.start.getTime();
|
appStore.duration.end.getTime() - appStore.duration.start.getTime();
|
||||||
const time: Date[] = [new Date(new Date().getTime() - gap), new Date()];
|
const dates: Date[] = [
|
||||||
appStore.setDuration(timeFormat(time));
|
getLocalTime(appStore.utc, new Date(new Date().getTime() - gap)),
|
||||||
|
getLocalTime(appStore.utc, new Date()),
|
||||||
|
];
|
||||||
|
appStore.setDuration(timeFormat(dates));
|
||||||
};
|
};
|
||||||
const handleAuto = () => {
|
const handleAuto = () => {
|
||||||
if (autoTime.value < 1) {
|
if (autoTime.value < 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user