|
@@ -52,8 +52,17 @@
|
|
|
this.newsDetail = res.data;
|
|
|
|
|
|
if(this.elderStatus) {
|
|
|
+
|
|
|
this.myFontSize=16;
|
|
|
- this.newsDetail.content=this.newsDetail.content.replaceAll("font-size","font-size:"+this.myFontSize+"px;");
|
|
|
+
|
|
|
+ var key1="font-size"
|
|
|
+ var key2="font-size:"+this.myFontSize+"px ; "
|
|
|
+
|
|
|
+ var reg=new RegExp(key1,'gi')
|
|
|
+ var content=this.newsDetail.content.replace(reg,key2)
|
|
|
+
|
|
|
+ this.newsDetail.content=content;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|