|
@@ -166,10 +166,18 @@ export default {
|
|
|
) {
|
|
|
this.showFileUrl = url;
|
|
|
this.showFileType = 1;
|
|
|
- } else {
|
|
|
+ } else if(
|
|
|
+ url.split(".")[url.split(".").length - 1].toLocaleUpperCase() == ("PNG" || 'JPG')
|
|
|
+ )
|
|
|
+ {
|
|
|
+ this.showFileUrl = url;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log(url.split(".")[url.split(".").length - 1].toLocaleUpperCase());
|
|
|
+
|
|
|
this.showFileUrl =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" + url;
|
|
|
- this.showFileType = 0;
|
|
|
+ this.showFileType = 0;
|
|
|
}
|
|
|
this.showFile = true;
|
|
|
},
|
|
@@ -280,6 +288,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.addDialog {
|
|
|
+
|
|
|
.el-dialog {
|
|
|
border-radius: 5px;
|
|
|
overflow: hidden;
|