main.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
const app = createApp(App)// 给组件每个生命周期,都混入一些公共逻辑
app.mixin({mounted () {if (typeof this.$el.className === 'string') {if (this.$el.className.split(' ').indexOf('el-select') !== -1) {this.$el.children[0].children[0].children[0].removeAttribute('readOnly')this.$el.children[0].children[0].children[0].onblur = function () {let _this = thissetTimeout(() => {_this.removeAttribute('readOnly')}, 200)}}}}
})