src/components/selectName/index.vue @@ -30,6 +30,13 @@ created () { this.currentTitle = this.value }, watch:{ value: { handler (newName, oldName) { this.currentTitle = newName } } }, methods: { currentClick (item, index) {