Vue mobile ios copy link

I used vue to develop a single-page application before, and the background was embedded in the WeChat public account. In the product details collection, the product address is
Android: http://XXXXX.com.cn/demandDet...
ios is: http:// XXXXX.com.cn/

 I am very curious why the url is not updated for ios?
When testing multiple times, when you refresh ios, copy the link again and find the address you want;
This is to think whether it is possible to rebuild the url?
 
method one:
In route navigation guards...
router.beforeEach((to, from, next) => {
if (to.path !== global.location.pathname) {
location.href = location.origin +'/'+ location.hash;
}
next();
});
方法二:
个别界面
beforeDestory(){
//清理标识
sessionStroage.replaceItem('flag')
},
mounted(){
  if(
sessionStroage.getItem('flag') !== null
){
  sessionStroage.setItem('flag === null)
  location.herf =
location.origin +
+'/'+ location.hash;
}
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324817937&siteId=291194637