Using cascade selector to report error in elemeneUI

problem description

I use cascading selector to refresh and report this error as soon as I come up. Why? Let"s have a look, gods.

the environmental background of the problems and what methods you have tried

clipboard.png

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Mar.30,2022

error isn't it clear that the value inside the cascading selector wants an Array, and you pass a String.
check whether the value bound by v-model on the el-cascader component is written by String


although I don't see how your code is written, but the error message printed on the console is already obvious, that is, the value you gave is of the wrong type. It should be an array instead of a string


maybe you gave an empty string during initialization.

Menu