From 6d89ed9619e4adfb4895d87f68ab1cff5c9ac6f6 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 20 Apr 2017 09:46:11 +0800 Subject: [PATCH] #713 --- src/components/breadcrumb/breadcrumb.vue | 4 +++- src/locale/format.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/breadcrumb/breadcrumb.vue b/src/components/breadcrumb/breadcrumb.vue index 15a1cf5..f9c5750 100644 --- a/src/components/breadcrumb/breadcrumb.vue +++ b/src/components/breadcrumb/breadcrumb.vue @@ -23,7 +23,9 @@ this.updateChildren(); }, updated () { - this.updateChildren(); + this.$nextTick(() => { + this.updateChildren(); + }); }, methods: { updateChildren () { diff --git a/src/locale/format.js b/src/locale/format.js index 59aba11..ecbf135 100644 --- a/src/locale/format.js +++ b/src/locale/format.js @@ -6,7 +6,7 @@ const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; -export default function(Vue) { +export default function() { // const { hasOwn } = Vue.util; function hasOwn (obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); -- libgit2 0.21.4