Fixed debug app for example custom element
This commit is contained in:
parent
a9239ab898
commit
0c695a377c
12 changed files with 1157 additions and 42 deletions
|
|
@ -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}`)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue