// 页面加载时
onMounted(() => {
getData();
});
// 由于页面缓存原因,keep-alive,所以回退的时候会走这个方法,如果需要重新请求则走这个方法
onActivated(() => {
getData();
});
https://blog.csdn.net/qq_44313787/article/details/130524477
https://blog.csdn.net/yjl13598765406/article/details/125498996
https://blog.csdn.net/sunon_/article/details/124534161