Commit 4d07056f authored by 刘斌's avatar 刘斌

fix: 测试文件预览2

parent 443048fd
......@@ -74,7 +74,11 @@ const [BasicModal, modalApi] = useVbenModal({
if (ossId) {
const resp = await ossInfo(ossId);
const ossData = resp[0];
url.value = `http://119.184.127.215:8012/onlinePreview?url=${encodeURIComponent(urlToBase64(ossData.url))}`;
ossData.url = (ossData?.url as string).replace(
'http://cdn.hr.antaikeji.top',
'/oss-proxy',
);
url.value = `/file-preview/onlinePreview?url=${encodeURIComponent(await urlToBase64(ossData.url))}`;
// console.log('[url.value]', url.value);
// formData.value = data;
// await formApi.setValues(formData.value);
......
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