update set ip

This commit is contained in:
Cjsah
2024-06-16 10:27:43 +08:00
parent 0337e465de
commit f3d055c9bb
7 changed files with 91 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
import { formatDate } from "@vueuse/shared";
import { baseUrl } from "@/api/axios.js";
export const isLegadoUrl = (/** @type {string} */ url) =>
/,\s*\{/.test(url) ||
@@ -12,7 +13,7 @@ export const isLegadoUrl = (/** @type {string} */ url) =>
*/
export function getImageFromLegado(src) {
return (
(import.meta.env.VITE_API || location.origin) +
baseUrl() +
"/image?path=" +
encodeURIComponent(src) +
"&url=" +