记录一次打包vue项目到tomcat并且支持其他项目iframe嵌套任意页面
config ->index.js -> assetsPublicPath
router ->index.js
路由模式必须为hash,才能用来监听
App.vue
hash改变时可进行监听去触发进行vue路由跳转
mounted(){
window.addEventListener('hashchange',()=>{
var currentPath = window.location.hash.slice(1); // 获...
原创
2020-11-24 17:18:31 ·
454 阅读 ·
0 评论