解析前

解析後
代碼
const reg = new RegExp("\n", "g");
res.data.notice = decodeURIComponent(res.data.notice).replace(reg,"<br>");
this.notice = res.data.notice
解析前
解析後
代碼
const reg = new RegExp("\n", "g");
res.data.notice = decodeURIComponent(res.data.notice).replace(reg,"<br>");
this.notice = res.data.notice