From d7c34c84f406c65d0e55dd2ef630cdee8db8a32d Mon Sep 17 00:00:00 2001 From: Net Date: Mon, 2 Jun 2025 20:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 4 ++-- src/utils/index.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 27b7e0a..d6af5b8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ -const ip: string = "119.29.194.155:8893"; -// const ip: string = "yufangzc.com"; +// const ip: string = "119.29.194.155:8893"; +const ip: string = "yufangzc.com"; const fwqip: string = "yufangzc.com"; //打包服务器接口代理标识 const SERVERAGENT: string = "/jzd-api"; diff --git a/src/utils/index.ts b/src/utils/index.ts index 18c369f..737f859 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -6,7 +6,8 @@ import {URL_REG} from "@/utils/RegExp"; * 图标路径处理 * 参数传入图片路径 * */ -export function imagUrl(path: string): string { +export function imagUrl(path: string) { + if (!path) return if (!URL_REG.test(path)) { if (BASE_IMAGE_URL === '/') { return path