|
|
@@ -1252,7 +1252,15 @@ export default {
|
|
|
},
|
|
|
surePinyin() {
|
|
|
this.oldInput = JSON.parse(JSON.stringify(this.checkPinyinInput.trim()));
|
|
|
- this.handleReplaceTone(this.checkPinyinInput.trim());
|
|
|
+ if (this.oldInput) {
|
|
|
+ this.handleReplaceTone(this.checkPinyinInput.trim());
|
|
|
+ } else {
|
|
|
+ this.itemActive.pinyin = ' ';
|
|
|
+ this.itemActive.pinyin_up = ' ';
|
|
|
+ this.$message.success('保存成功');
|
|
|
+ // this.itemActive = null;
|
|
|
+ this.dialogFlag = false;
|
|
|
+ }
|
|
|
},
|
|
|
handleReplaceTone(e) {
|
|
|
let _this = this;
|
|
|
@@ -1669,6 +1677,7 @@ export default {
|
|
|
.pinyin {
|
|
|
display: block;
|
|
|
font-family: 'PINYIN-B';
|
|
|
+ white-space: pre;
|
|
|
}
|
|
|
|
|
|
.word {
|