Replace clearRefreshInterval with stopRefreshInterval

This commit is contained in:
Vikas Kapadiya 2020-09-16 09:45:12 +05:30 committed by GitHub
parent 3859002a78
commit 4841b839f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -261,15 +261,15 @@
}, },
destroyed () { destroyed () {
if (this.refreshTicker) { if (this.refreshTicker) {
this.clearRefreshInterval(); this.stopRefreshInterval();
} }
}, },
watch: { watch: {
connected (newVal) { connected (newVal) {
newVal ? this.startRefreshInterval() : this.clearRefreshInterval(); newVal ? this.startRefreshInterval() : this.stopRefreshInterval();
}, },
autoRefresh (newVal) { autoRefresh (newVal) {
newVal ? this.startRefreshInterval() : this.clearRefreshInterval(); newVal ? this.startRefreshInterval() : this.stopRefreshInterval();
}, },
}, },
methods: { methods: {