|
@@ -12,6 +12,7 @@
|
|
|
placeholder="请输入内容"
|
|
|
v-model="curQue.sentence"
|
|
|
@blur="onBlur(curQue, 'sentence')"
|
|
|
+ @change="SentenceChange"
|
|
|
></el-input>
|
|
|
|
|
|
<el-button type="primary" size="small" @click="sureClause"
|
|
@@ -35,6 +36,12 @@ export default {
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
+ // 修改句子要清除掉分词结果
|
|
|
+ SentenceChange() {
|
|
|
+ console.log(this.curQue);
|
|
|
+ this.curQue.seg_words = "";
|
|
|
+ this.curQue.segList = [];
|
|
|
+ },
|
|
|
onBlur(item, field) {
|
|
|
item[field] = item[field] ? item[field].trim() : "";
|
|
|
},
|