diff --git a/src/utils/index.js b/src/utils/index.js index 09f7e10..62155a5 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,4 +1,3 @@ -import { request } from "@cqsjjb/jjb-common-lib/http.js"; import dayjs from "dayjs"; import { ID_NUMBER } from "../regular"; @@ -555,15 +554,6 @@ export function normalizeEmptyHtml(html) { /** * 获取文件url */ -export async function getFileUrl() { - if (window.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"]; - } +export function getFileUrl() { + return process.env.app["fileUrl"]; }