优化后,再次提交
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
import { ref, reactive } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { acceptanceRectification, getHiddenDangerDetail } from '@/request/api.js';
|
||||
import { baseUrl,getToken } from '@/request/request.js';
|
||||
import { baseUrl, getToken, toImageUrl } from '@/request/request.js';
|
||||
|
||||
// 页面参数
|
||||
const rectifyId = ref('');
|
||||
@@ -75,9 +75,9 @@
|
||||
const getFullPath = (filePath) => {
|
||||
if (!filePath) return '';
|
||||
if (filePath.startsWith('http://') || filePath.startsWith('https://')) {
|
||||
return filePath;
|
||||
return toImageUrl(filePath);
|
||||
}
|
||||
return baseUrl + filePath;
|
||||
return toImageUrl(filePath);
|
||||
};
|
||||
|
||||
// 图片预览
|
||||
|
||||
Reference in New Issue
Block a user