Commit 6d89ed9619e4adfb4895d87f68ab1cff5c9ac6f6
1 parent
a5594091
#713
@Becavalier
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
src/components/breadcrumb/breadcrumb.vue
@@ -23,7 +23,9 @@ | @@ -23,7 +23,9 @@ | ||
23 | this.updateChildren(); | 23 | this.updateChildren(); |
24 | }, | 24 | }, |
25 | updated () { | 25 | updated () { |
26 | - this.updateChildren(); | 26 | + this.$nextTick(() => { |
27 | + this.updateChildren(); | ||
28 | + }); | ||
27 | }, | 29 | }, |
28 | methods: { | 30 | methods: { |
29 | updateChildren () { | 31 | updateChildren () { |
src/locale/format.js
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; | 7 | const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; |
8 | 8 | ||
9 | -export default function(Vue) { | 9 | +export default function() { |
10 | // const { hasOwn } = Vue.util; | 10 | // const { hasOwn } = Vue.util; |
11 | function hasOwn (obj, key) { | 11 | function hasOwn (obj, key) { |
12 | return Object.prototype.hasOwnProperty.call(obj, key); | 12 | return Object.prototype.hasOwnProperty.call(obj, key); |