|
@@ -290,9 +290,17 @@ export default {
|
|
|
if (!isEnable(this.data.property.view_pinyin)) {
|
|
if (!isEnable(this.data.property.view_pinyin)) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- let styles = this.$refs.richText.getFirstCharStyles();
|
|
|
|
|
- let content = this.$refs.richText.getRichContent();
|
|
|
|
|
- this.createParsedTextInfoPinyin(content, styles);
|
|
|
|
|
|
|
+ this.$confirm('刷新将会重置文本分词和拼音,是否刷新?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ let styles = this.$refs.richText.getFirstCharStyles();
|
|
|
|
|
+ let content = this.$refs.richText.getRichContent();
|
|
|
|
|
+ this.createParsedTextInfoPinyin(content, styles);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
},
|
|
|
showSetting() {
|
|
showSetting() {
|
|
|
this.richId = this.$refs.richText.id;
|
|
this.richId = this.$refs.richText.id;
|