The parameter passed by the VUE parent to the son cannot be obtained.

my ultimate goal is to get it in methods, and now I can"t even get it on the page. That"s why

Feb.25,2022

memberType to member-type , dueId to due-id


I don't know
downstairs reply


props:{
  memberType:{
     type:Number,
     default:0
  }
}

props requires a default initialization value.


should be no problem, you are not directly used in methods memberType and dueId, should use this.memberType and this.dueId call


I suggest you truncate the page map, feel that you called the method of the same name in methods


I found the problem, the component is written too long. There is also a props: {msg:String}
which should overwrite the preceding


either in the form of an array directly, or each value is an object and brought to a default value. The writing here is not correct

.
Menu