mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 10:25:47 +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(
|
||||
'navbar',
|
||||
() => {
|
||||
const downloadData = ref<number[]>(new Array(15).fill(0))
|
||||
const uploadData = ref<number[]>(new Array(15).fill(0))
|
||||
const downloadData = ref<(number | null)[]>(new Array(15).fill(null))
|
||||
const uploadData = ref<(number | null)[]>(new Array(15).fill(null))
|
||||
|
||||
function pushDownloadData(data: number) {
|
||||
downloadData.value.shift()
|
||||
|
|
Loading…
Reference in a new issue