Skip to content

Commit

Permalink
前端独立运行不报错
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Sep 29, 2018
1 parent 62ef23a commit 90d3da3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions front/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ getInitConfig()
// Set default language
i18n.locale = result.locale
})
.catch(() => {
Vue.prototype.$config = {}
})
.finally(() => {
new Vue({
router,
Expand Down

0 comments on commit 90d3da3

Please sign in to comment.