This commit is contained in:
lee-soo-heon
2019-09-23 11:34:13 +09:00
parent 3bf5b208e2
commit 4eb4eef3ed
2 changed files with 5 additions and 9 deletions

View File

@@ -115,15 +115,14 @@
}
},
created() {
this.$EventBus.$on('API',function (item) {
this.api=item;
})
var me = this
if(`${API_HOST}` == "undefined") {
me.$forceUpdate()
}
},
mounted() {
var me = this;
if(`${API_HOST}` == "undefined") {
me.$forceUpdate()
} else {
console.log(`${API_HOST}`)
this.$nextTick(function(){
console.log(me.api)
this.getProdList();
@@ -135,7 +134,6 @@
this.$EventBus.$on('updateList', function () {
me.getProdList()
})
}
},

View File

@@ -52,7 +52,6 @@
edit:'',
buyDialog: false,
editDialog: false,
}
},
methods:{
@@ -67,7 +66,6 @@
},
created() {
this.$EventBus.$emit('API',`${API_HOST}`);
}
}