文章詳情頁
angular.js - webpack build后的angularjs路由跳轉問題
瀏覽:104日期:2024-03-11 13:50:03
問題描述
用的webpack+es6+angular1.6,項目里有用到類似http://xx.xx.xx.xx/editor/m/new,這樣的路由,dev環境里可以正常訪問,但是build后在入口頁面只要一訪問這個state就會404,難道webpack沒把這個路由相關的內容一起build進去?
問題解答
回答1:已經解決,用hashHistory
標簽:
web
相關文章:
1. javascript - 原生canvas中如何獲取到觸摸事件的canvas內坐標?2. showpassword里的this 是什么意思?代表哪個元素3. mysql scripts提示 /usr/bin/perl: bad interpreter4. css3 - css怎么實現圖片環繞的效果5. html - vue項目中用到了elementUI問題6. 對mysql某個字段監控的功能7. java - spring boot @Autowired8. JavaScript事件9. css3 - border-bottom 的長度可否超過盒子的寬度呢?實現如下圖效果。(我的書下面的線)10. mysql優化 - mysql EXPLAIN之后怎么看結果進行優化 ?
排行榜
