data必须为函数类型,return中可以返回:数组,字符串,对象,数字,布尔值等。 export default { data() { return { topBanner:[], index_banner:{}, } } }