|
@@ -780,7 +780,8 @@ export default {
|
|
|
oldVal &&
|
|
oldVal &&
|
|
|
oldVal.new_word_list[0].new_word &&
|
|
oldVal.new_word_list[0].new_word &&
|
|
|
val.new_word_list[0].new_word !== oldVal.new_word_list[0].new_word) ||
|
|
val.new_word_list[0].new_word !== oldVal.new_word_list[0].new_word) ||
|
|
|
- (val && val.new_word_list[0].new_word && !oldVal)
|
|
|
|
|
|
|
+ (val && val.new_word_list[0].new_word && !oldVal) ||
|
|
|
|
|
+ (val && val.hasOwnProperty('unified_attrib') && oldVal && !oldVal.hasOwnProperty('unified_attrib'))
|
|
|
) {
|
|
) {
|
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
|
this.initData();
|
|
this.initData();
|
|
@@ -792,13 +793,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.width = `${
|
|
|
|
|
- document.querySelector('.preview-main').offsetWidth -
|
|
|
|
|
- 200 -
|
|
|
|
|
- 20 -
|
|
|
|
|
- (this.data.property.sn_display_mode === 'true' ? 15 : 0) -
|
|
|
|
|
- (this.newData ? 16 : 0)
|
|
|
|
|
- }px`;
|
|
|
|
|
|
|
+ let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
|
|
+ this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0) - (this.newData ? 16 : 0)}px`;
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
palyAudio(url, sIndex) {
|
|
palyAudio(url, sIndex) {
|