![](/img/trans.png)
[英]My app doesn't work after deployed on github pages(create-react-app)
[英]Github pages made with create-react-app + react-routers doesn't load in iOS devices
解決了這個問題:
問題是 iOS 設備上的 Chrome、Firefox 和 Safari 不使用正則表達式后視。
替換: const linkParam = document.URL.match(/(?<=team-builder/).+/g);
和:
const urlSplit = document.URL.split('/');
const linkParam = urlSplit[urlSplit.findIndex((param) => param === 'team-builder') + 1];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.