Skip to content

Commit

Permalink
fix: bug 修复打包后报错 TypeError: le.addRoute is not a function
Browse files Browse the repository at this point in the history
原因是本地开发阶段引用的是npm包中的vue-router,与打包后externals中CDN载入的vue-router版本不一致导致的。
  • Loading branch information
sammeishi authored and sendya committed Aug 18, 2021
1 parent 4747677 commit e30976b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const assetsCDN = {
// https://unpkg.com/browse/[email protected]/
js: [
'//cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js',
'//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js',
'//cdn.jsdelivr.net/npm/vue-router@3.5.1/dist/vue-router.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/dist/vuex.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js'
]
Expand Down

0 comments on commit e30976b

Please sign in to comment.