Questions about JS data types

when I was working on a company project, a piece of data came from the background: [{. }]
I take it for granted that it is an array, then assign it to an empty array aprData, and pass aprData to the subcomponents, and specify type checking in the subcomponents:

props: {
    aprData:[],
    }

and then something amazing happens, and the console says:

errorHandler: I**nvalid prop: type check failed for prop "aprData". Expected , got Array

so I hastened to check the data type:

console.log("aprData:",Object.prototype.toString.call(this.aprData));

result: aprData type: [object Array]
so I am completely confused. What went wrong?

Mar.03,2022

because your type checking should write

props: {
    aprData: Array
    ...
}

I haven't written VUE, for a long time, but props type constraint, shouldn't I write "Array"?

props:{
    aprData:Array
}

There is no such way to write

, any of the following is fine.

// 
props: ['aprData']

// 
props: {
    aprData: Array
}

// 
props: {
    aprData: {
        type: Array,
        default: []
    }
}

replace [] with Array

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb878a-26dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb878a-26dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?