Update auto-complete.vue

Fixed a bug in autocomplete component when iview is not installed globally.
This commit is contained in:
Miguel Coder 2019-09-19 07:17:13 -07:00 committed by GitHub
parent 68ff748436
commit ebf0e32976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@
transfer: {
type: Boolean,
default () {
return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
}
},
name: {