aa
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
edit:'',
|
||||
buyDialog: false,
|
||||
editDialog: false,
|
||||
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
@@ -67,7 +66,6 @@
|
||||
|
||||
},
|
||||
created() {
|
||||
this.$EventBus.$emit('API',`${API_HOST}`);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user