Commit e3ad9b67 authored by mhw's avatar mhw

Prompt录入bug修复

parent e77a174f
......@@ -112,7 +112,8 @@ export default {
methods: {
init () {
Object.assign(this.$data, this.$options.data())
Object.assign(this.$data, this.$options.data());
this.$emit('input', undefined)
},
changeInput (data) {
this.prompt = data
......@@ -127,7 +128,7 @@ export default {
return item.label + ':' + item.value + '\n'
}
}).join('')
console.log(promptsString);
this.$emit('input', [1, 2, 3].indexOf(this.templateFramework) === -1 ? this.prompt : promptsString)
},
add (item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment