mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-07 21:54:05 +08:00
update: JS逻辑注入正常
This commit is contained in:
parent
870b865df0
commit
1cbe8fff43
@ -50,12 +50,7 @@ import 'codemirror/addon/fold/indent-fold.js'
|
|||||||
import 'codemirror/addon/fold/markdown-fold.js'
|
import 'codemirror/addon/fold/markdown-fold.js'
|
||||||
import 'codemirror/addon/fold/xml-fold.js'
|
import 'codemirror/addon/fold/xml-fold.js'
|
||||||
|
|
||||||
// require(['axios'], axios => {
|
import axios from 'axios';
|
||||||
// self.axios = axios.create({
|
|
||||||
// baseURL: '',
|
|
||||||
// timeout: 1000,
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['initCode', 'mode'],
|
props: ['initCode', 'mode'],
|
||||||
@ -64,6 +59,14 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Codemirror
|
Codemirror
|
||||||
},
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
self.axios = axios.create({
|
||||||
|
baseURL: '',
|
||||||
|
timeout: 1000,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
code: {
|
code: {
|
||||||
get() {
|
get() {
|
||||||
@ -75,7 +78,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
initCode(){
|
initCode() {
|
||||||
this.codeStore = this.initCode;
|
this.codeStore = this.initCode;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
3
src/components/halower-tree.min.css
vendored
3
src/components/halower-tree.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user