From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示
---
src/utils/module.js | 60 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/utils/module.js b/src/utils/module.js
index 6b34053..f3c21a7 100644
--- a/src/utils/module.js
+++ b/src/utils/module.js
@@ -1,39 +1,39 @@
-let flowInstance = null;
-let formInstance = null;
-let formDesignInstance = null;
+let flowInstance = null
+let formInstance = null
+let formDesignInstance = null
export function loadFlowModule(app) {
- if (!flowInstance) {
- flowInstance = import('@saber/nf-design-base-elp')
- .then(module => {
- app.use(module.default);
- return module;
- })
- .catch(error => console.error('failed to load module:', error));
- }
- return flowInstance;
+ if (!flowInstance) {
+ flowInstance = import('@saber/nf-design-base-elp')
+ .then(module => {
+ app.use(module.default)
+ return module
+ })
+ .catch(error => console.error('failed to load module:', error))
+ }
+ return flowInstance
}
export function loadFormModule(app) {
- if (!formInstance) {
- formInstance = import('@saber/nf-form-elp')
- .then(module => {
- app.use(module.default);
- return module;
- })
- .catch(error => console.error('failed to load module:', error));
- }
- return formInstance;
+ if (!formInstance) {
+ formInstance = import('@saber/nf-form-elp')
+ .then(module => {
+ app.use(module.default)
+ return module
+ })
+ .catch(error => console.error('failed to load module:', error))
+ }
+ return formInstance
}
export function loadFormDesignModule(app) {
- if (!formDesignInstance) {
- formDesignInstance = import('@saber/nf-form-design-elp')
- .then(module => {
- app.use(module.default);
- return module;
- })
- .catch(error => console.error('failed to load module:', error));
- }
- return formDesignInstance;
+ if (!formDesignInstance) {
+ formDesignInstance = import('@saber/nf-form-design-elp')
+ .then(module => {
+ app.use(module.default)
+ return module
+ })
+ .catch(error => console.error('failed to load module:', error))
+ }
+ return formDesignInstance
}
--
Gitblit v1.9.3