fix: update time range

This commit is contained in:
Qiuxia Fan
2022-01-12 16:06:25 +08:00
parent 299980b2d5
commit 5b95557905
3 changed files with 37 additions and 29 deletions

View File

@@ -98,6 +98,7 @@ export const appStore = defineStore({
actions: {
setDuration(data: Duration): void {
this.durationRow = data;
localStorage.setItem("durationRow", JSON.stringify(data, null, 0));
if ((window as any).axiosCancel.length !== 0) {
for (const event of (window as any).axiosCancel) {
setTimeout(event(), 0);