|
@@ -47,14 +47,6 @@ import electronicSignature from './template/electronicSignature.vue'
|
|
|
import setFormula from './template/setFormula.vue'
|
|
|
import editDefault from './template/editDefault.vue'
|
|
|
import Vue from 'vue'
|
|
|
-var MyComponent = Vue.extend({
|
|
|
- template: localStorage.getItem('excelHtml'),
|
|
|
- data () {
|
|
|
- return {
|
|
|
- }
|
|
|
- },
|
|
|
-})
|
|
|
-let component = new MyComponent().$mount()
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -67,7 +59,16 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted () {
|
|
|
- document.getElementById('parent').appendChild(component.$el);
|
|
|
+ this.cop()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async cop () {
|
|
|
+ var MyComponent = await Vue.extend({
|
|
|
+ template: localStorage.getItem('excelHtml')
|
|
|
+ })
|
|
|
+ var component = new MyComponent().$mount()
|
|
|
+ document.getElementById('parent').appendChild(component.$el);
|
|
|
+ },
|
|
|
},
|
|
|
components: {
|
|
|
setInputTPT,
|