Fixed debug app for example custom element

This commit is contained in:
Joel Collins 2020-03-31 16:24:41 +01:00
parent a9239ab898
commit 0c695a377c
12 changed files with 1157 additions and 42 deletions

View file

@ -20,7 +20,7 @@ export default {
props: {
'componentBaseURL': {
required: false,
default: "http://localhost/api/v2",
default: "http://localhost:5000/api/v2",
type: String
}
},
@ -33,7 +33,8 @@ export default {
};
},
mounted () {
mounted: function() {
console.log(this.componentBaseURL)
if (this.componentBaseURL){
axios
.get(`${this.componentBaseURL}`)

View file

@ -1,13 +1,5 @@
import Vue from 'vue';
import wrap from '@vue/web-component-wrapper';
import App from './App.vue';
import VueWebComponent from './components/VueWebComponent';
const CustomElement = wrap(Vue, VueWebComponent);
window.customElements.define('my-custom-element', CustomElement);
Vue.config.productionTip = false;
new Vue({
render: h => h(App)