Commit 81d2bcbf authored by yanglilong's avatar yanglilong

修改邮件预览

parent e1061311
......@@ -16,13 +16,13 @@
### bug文档地址
> https://doc.weixin.qq.com/sheet/e3_AJUAZgYxAAgc43lZU8US7aQNaosuJ?scode=AMoAawcKABAwUOv0vIACEApQbQAFk&tab=BB08J2
### 测试
### 测试 npm run build
1. IP: 114.55.4.202
2. 域名 http://nt.run4wd.com/bims
3. 登录账密 admin/123456
4. 发布目录:/datavg/bims/
### 生产
### 生产 npm run build
1. IP: 139.224.200.172
2. 域名 http://bims.medilink-global.com.cn
3. 登录账密 admin/123456
......
......@@ -4,7 +4,6 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve --mode development",
"build:test": "vue-cli-service build --mode development",
"build": "vue-cli-service build --mode production --report",
"lint": "vue-cli-service lint"
},
......
......@@ -483,8 +483,9 @@ export default{
.then((res)=>{
this.loading2 = false;
if(res.returnCode == '0000'){
let data = res.content || {};
//防止图片或者视频超过弹窗的宽度
this.previewContent = ( res.data || "").replace(/<img/gi,"<img style='max-width:100%;height:auto;'")
this.previewContent = ( data.content || "").replace(/<img/gi,"<img style='max-width:100%;height:auto;'")
.replace(/<video/gi,"<video style='width:100%;height:auto;'");
this.previewModalShow = true;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment