mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-31 13:54:34 +03:00
perf(SpeedGraph): Init values with null (#1422)
This commit is contained in:
parent
bec713cd82
commit
51d58cfc49
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ import { ref } from 'vue'
|
||||||
export const useNavbarStore = defineStore(
|
export const useNavbarStore = defineStore(
|
||||||
'navbar',
|
'navbar',
|
||||||
() => {
|
() => {
|
||||||
const downloadData = ref<number[]>(new Array(15).fill(0))
|
const downloadData = ref<(number | null)[]>(new Array(15).fill(null))
|
||||||
const uploadData = ref<number[]>(new Array(15).fill(0))
|
const uploadData = ref<(number | null)[]>(new Array(15).fill(null))
|
||||||
|
|
||||||
function pushDownloadData(data: number) {
|
function pushDownloadData(data: number) {
|
||||||
downloadData.value.shift()
|
downloadData.value.shift()
|
||||||
|
|
Loading…
Add table
Reference in a new issue