From aec00ecc093be803860c8675cbe1c4c776a7cb4e Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Tue, 19 Mar 2024 17:49:21 +0800
Subject: [PATCH] update: 新建航线、事件编辑、kmz文件问题修改

---
 src/utils/common.ts |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/utils/common.ts b/src/utils/common.ts
index 26fd977..891e618 100644
--- a/src/utils/common.ts
+++ b/src/utils/common.ts
@@ -10,3 +10,7 @@
   lable.click()
   URL.revokeObjectURL(lable.href)
 }
+
+export const requireImg = (imgPath: string) => {
+  return new URL(`../assets/${imgPath}`, import.meta.url).href
+}

--
Gitblit v1.9.3