fix: 修复 select2 error bug

This commit is contained in:
ibuler
2021-10-21 14:15:49 +08:00
committed by 老广
parent 4c74e75673
commit 0a3f7f6616
2 changed files with 4 additions and 3 deletions

View File

@@ -178,8 +178,8 @@ export default {
if (!this.initialized) { if (!this.initialized) {
await this.initialSelect() await this.initialSelect()
setTimeout(() => { setTimeout(() => {
this.initialized = true
this.iValue = this.value this.iValue = this.value
this.initialized = true
}) })
} }
this.$nextTick(() => { this.$nextTick(() => {

View File

@@ -39,6 +39,7 @@ module.exports = {
port: port, port: port,
host: '0.0.0.0', host: '0.0.0.0',
open: false, open: false,
disableHostCheck: true,
overlay: { overlay: {
warnings: false, warnings: false,
errors: true errors: true
@@ -84,9 +85,9 @@ module.exports = {
alias: { alias: {
'@': resolve('src'), '@': resolve('src'),
elementCss: resolve('node_modules/element-ui/lib/theme-chalk/index.css'), 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: [ plugins: [
new CompressionWebpackPlugin({ new CompressionWebpackPlugin({