From f73947395184fd635df3d74c1c4b2701d0c708c1 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 25 六月 2024 14:51:04 +0800
Subject: [PATCH] 动态Import更新

---
 src/views/tigerprojects/system/lowcode/detail/detail.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/detail/detail.vue b/src/views/tigerprojects/system/lowcode/detail/detail.vue
index 5898fb3..7fef75c 100644
--- a/src/views/tigerprojects/system/lowcode/detail/detail.vue
+++ b/src/views/tigerprojects/system/lowcode/detail/detail.vue
@@ -55,7 +55,7 @@
   const dtlSlots = ref([] as any[]);
   const useModalData = ref({}); //琛ㄥ崟涓彃妲芥覆鏌撴寜閽墦寮�妯℃�佹useModal鏂规硶
   const useFormData = ref({});
-  const custImport = ref<any[]>(await import(/* @vite-ignore */ `../entityts/${props.entityName}`));
+  const custImport = ref<any[]>(await import(`../entityts/${props.entityName}.ts`));
   const [{ EditeOperation, GetBaseColumns, GetSearchForm, GetCrudForm, OthersValues }] =
     custImport.value['default']();
   others.value = OthersValues(objParams['CODE'], objParams['ID']);
@@ -88,7 +88,7 @@
    * @description: 鐢熸垚鍒楄〃涓搷浣滈」鐨勬寜閽�
    * @param {*} record
    * @return {*}
-   */  
+   */
   function createActions(record) {
     const params = {
       record,
@@ -201,7 +201,7 @@
     /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */
     try {
       import(
-        /* @vite-ignore */ `../entityts/${getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]}`
+        `../entityts/${getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]}.ts`
       )
         .then((m) => {
           const [{ GetSelectSuccess }] = m.default();
@@ -224,7 +224,7 @@
     /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */
     try {
       import(
-        /* @vite-ignore */ `../entityts/${props.useTableData['table'][1].getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]}`
+        `../entityts/${props.useTableData['table'][1].getForm().getFieldsValue()[`${item.replace(/form-/, '').replace(/add/, '')}PSelect_0`]}.ts`
       )
         .then((m) => {
           const [{ OpenSelectItem }] = m.default();

--
Gitblit v1.9.3