编码规范调整

This commit is contained in:
yuantao
2025-09-28 16:52:54 +08:00
parent 931fa1afd3
commit 86a29f8a93
2 changed files with 12 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
const baseUrl = import.meta.env.BASE_URL
const baseUrl = import.meta.env.VITE_BASE_URL
const assetsUrl = import.meta.env.VITE_ASSETSURL
/**
* 工具类 - 提供常用的工具方法
@@ -233,7 +234,7 @@ class Tool {
await new Promise((resolve, reject) => {
uni.loadFontFace({
family: fontFamily,
source: `url(${config.ASSETSURL}${fontName})`,
source: `url(${assetsUrl}${fontName})`,
global: true,
success: resolve,
fail: reject,