|
|
@@ -181,14 +181,16 @@
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- document.getElementsByClassName('el-upload-dragger')[0].onclick = function (event) {
|
|
|
- event.stopPropagation()
|
|
|
- }
|
|
|
let _this = this
|
|
|
- document.body.onclick = function () {
|
|
|
- _this.showSimilarCodeList = false
|
|
|
- _this.showSimilarBrandList = false
|
|
|
- }
|
|
|
+ this.$nextTick(() => {
|
|
|
+ document.getElementsByClassName('el-upload-dragger')[0].onclick = function (event) {
|
|
|
+ event.stopPropagation()
|
|
|
+ }
|
|
|
+ document.body.onclick = function () {
|
|
|
+ _this.showSimilarCodeList = false
|
|
|
+ _this.showSimilarBrandList = false
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
emptyForm: function () {
|