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