mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
fix:remove reloadTimer getter
This commit is contained in:
parent
1a8b7b4526
commit
a43ea5a5c6
@ -57,9 +57,6 @@ export const appStore = defineStore({
|
|||||||
reloadTimer: null,
|
reloadTimer: null,
|
||||||
}),
|
}),
|
||||||
getters: {
|
getters: {
|
||||||
_reloadTimer(): any {
|
|
||||||
return this.reloadTimer;
|
|
||||||
},
|
|
||||||
duration(): Duration {
|
duration(): Duration {
|
||||||
return {
|
return {
|
||||||
start: getLocalTime(this.utc, this.durationRow.start),
|
start: getLocalTime(this.utc, this.durationRow.start),
|
||||||
|
@ -69,7 +69,7 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, reactive } from "vue";
|
import { ref } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useAppStoreWithOut } from "@/store/modules/app";
|
import { useAppStoreWithOut } from "@/store/modules/app";
|
||||||
import timeFormat from "@/utils/timeFormat";
|
import timeFormat from "@/utils/timeFormat";
|
||||||
@ -100,8 +100,8 @@ const handleAuto = () => {
|
|||||||
handleReload();
|
handleReload();
|
||||||
appStore.setReloadTimer(setInterval(handleReload, autoTime.value * 1000));
|
appStore.setReloadTimer(setInterval(handleReload, autoTime.value * 1000));
|
||||||
} else {
|
} else {
|
||||||
if (appStore._reloadTimer) {
|
if (appStore.reloadTimer) {
|
||||||
clearInterval(appStore._reloadTimer);
|
clearInterval(appStore.reloadTimer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -109,8 +109,8 @@ const changeAutoTime = () => {
|
|||||||
if (autoTime.value < 1) {
|
if (autoTime.value < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (appStore._reloadTimer) {
|
if (appStore.reloadTimer) {
|
||||||
clearInterval(appStore._reloadTimer);
|
clearInterval(appStore.reloadTimer);
|
||||||
}
|
}
|
||||||
if (auto.value) {
|
if (auto.value) {
|
||||||
handleReload();
|
handleReload();
|
||||||
|
Loading…
Reference in New Issue
Block a user