|
@@ -36,12 +36,15 @@ export default {
|
|
|
data() {
|
|
|
return {}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ chapInfo(newVal, oldVal) {
|
|
|
+ this.chapInfo.chapterInfo[0].taskJson[this.taskCount].taskDetail = this.chapInfo.chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].taskDetail.replace(/(<img[^>]+)style="max-width:\s*100%25;"/g, '$1style="max-width:100%;"')
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
// let con = this.chapInfo
|
|
|
- console.log('??????????????????????????????', this.chapInfo)
|
|
|
- this.chapInfo.chapterInfo[0].taskJson[this.taskCount].taskDetail = this.chapInfo.chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].taskDetail.replace(/(<img[^>]+)style="max-width:\s*100%25;"/g, '$1style="max-width:100%;"')
|
|
|
}
|
|
|
}
|
|
|
</script>
|