diff --git a/example/app.js b/example/app.js index f8f340a..0951a2d 100644 --- a/example/app.js +++ b/example/app.js @@ -120,7 +120,6 @@ const App = { data() { return { lang: 'en', - hackReset: true, currentId: this.getCurrentId(), }; }, @@ -140,10 +139,6 @@ const App = { const lang = this.lang === 'en' ? 'zh-cn' : 'en'; this.lang = lang; this.changeLocale(lang); - this.hackReset = false; - this.$nextTick(() => { - this.hackReset = true; - }); }, }, render(h) { @@ -169,8 +164,8 @@ const App = { {this.lang === 'en' ? '中文' : 'English'} - {this.hackReset && - components.map(item => { +