解决bug: 添加产品SOP界面,图片预览错误

This commit is contained in:
Li Jian 2023-09-23 20:52:50 +08:00
parent 89c0ae8756
commit f1f8410316

View File

@ -93,7 +93,7 @@ export default {
// //
this.fileList = list.map(item => { this.fileList = list.map(item => {
if (typeof item === "string") { if (typeof item === "string") {
if (item.indexOf(this.baseUrl) === -1) { if (item.indexOf(this.baseUrl) === -1 && item.indexOf('://') < 0) {
item = { name: this.baseUrl + item, url: this.baseUrl + item }; item = { name: this.baseUrl + item, url: this.baseUrl + item };
} else { } else {
item = { name: item, url: item }; item = { name: item, url: item };