From 0a3f7f66165b33aff8b31b46020a904dd5e65adc Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 21 Oct 2021 14:15:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20select2=20error=20b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FormFields/Select2.vue | 2 +- vue.config.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/FormFields/Select2.vue b/src/components/FormFields/Select2.vue index dde7b31c1..0da00f5fb 100644 --- a/src/components/FormFields/Select2.vue +++ b/src/components/FormFields/Select2.vue @@ -178,8 +178,8 @@ export default { if (!this.initialized) { await this.initialSelect() setTimeout(() => { - this.initialized = true this.iValue = this.value + this.initialized = true }) } this.$nextTick(() => { diff --git a/vue.config.js b/vue.config.js index 8047314f7..e548d1a41 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,6 +39,7 @@ module.exports = { port: port, host: '0.0.0.0', open: false, + disableHostCheck: true, overlay: { warnings: false, errors: true @@ -84,9 +85,9 @@ module.exports = { alias: { '@': resolve('src'), elementCss: resolve('node_modules/element-ui/lib/theme-chalk/index.css'), - elementLocale: resolve('node_modules/element-ui/lib/locale/lang/en.js'), + elementLocale: resolve('node_modules/element-ui/lib/locale/lang/en.js') }, - extensions: ['.vue', '.js', '.json'], + extensions: ['.vue', '.js', '.json'] }, plugins: [ new CompressionWebpackPlugin({