Commit 6d89ed9619e4adfb4895d87f68ab1cff5c9ac6f6

Authored by 梁灏
1 parent a5594091

#713

@Becavalier
src/components/breadcrumb/breadcrumb.vue
... ... @@ -23,7 +23,9 @@
23 23 this.updateChildren();
24 24 },
25 25 updated () {
26   - this.updateChildren();
  26 + this.$nextTick(() => {
  27 + this.updateChildren();
  28 + });
27 29 },
28 30 methods: {
29 31 updateChildren () {
... ...
src/locale/format.js
... ... @@ -6,7 +6,7 @@
6 6  
7 7 const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
8 8  
9   -export default function(Vue) {
  9 +export default function() {
10 10 // const { hasOwn } = Vue.util;
11 11 function hasOwn (obj, key) {
12 12 return Object.prototype.hasOwnProperty.call(obj, key);
... ...