there is a problem with variable assignment when building a project using vue-cli. 
 pass in a variable from outside component to render the menu. This variable gets 
 from $.post, but using different assignment methods will make the result different: 
 
12
chromeconsole: 
 
component. Use props to pass in this variable
 question 1: what is the essential difference between these two approaches? 
 question 2: when declaring a name in data, if you declare  mainMenu:" instead of  mainMenu: []  in the figure, method 1 will report an error directly. What is the principle of this? 
