代码拉取完成,页面将自动刷新
uni.navigateTo({
url:'/pages/',
success : () => {
uni.$emit("news",element);
}
})
export default {
name: "news_details",
data() {
return {
title: '',
newData:null,
}
},
onLoad(option) {
let $this = this;
uni.$once("news", (res) => {
console.log("res----",res);
$this.newData = res;
console.log("res----",$this.newData);
})
},
methods: {
}
}