getFileUrl地址去除从服务器获取
parent
ec0d792bcd
commit
e891ab5774
|
|
@ -1,4 +1,3 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { ID_NUMBER } from "../regular";
|
import { ID_NUMBER } from "../regular";
|
||||||
|
|
||||||
|
|
@ -555,15 +554,6 @@ export function normalizeEmptyHtml(html) {
|
||||||
/**
|
/**
|
||||||
* 获取文件url
|
* 获取文件url
|
||||||
*/
|
*/
|
||||||
export async function getFileUrl() {
|
export function getFileUrl() {
|
||||||
if (window.fileUrl)
|
return process.env.app["fileUrl"];
|
||||||
return window.fileUrl;
|
|
||||||
try {
|
|
||||||
const { data } = await request("/basicInfo/imgFiles/getImagePath", "get");
|
|
||||||
window.fileUrl = data;
|
|
||||||
return data || process.env.app["fileUrl"];
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
return process.env.app["fileUrl"];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue