From b1e27feae0b951218fd2f0b0561f9be4c8b67771 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 30 九月 2026 15:26:47 +0800
Subject: [PATCH] chore(config): 关闭前端租户开关,与后端 yudao.tenant.enable=false 对齐

---
 src/utils/index.ts |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/utils/index.ts b/src/utils/index.ts
index b1923cb..490f71a 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,10 +1,11 @@
-import type { Recordable } from '../packages/types/src';
+import type { Recordable } from '@vben/types';
 
+export * from './fileUrl';
 export * from './rangePickerProps';
 export * from './routerHelper';
 
 // 浠庡叡浜寘瀵煎嚭 URL 宸ュ叿鍑芥暟
-export { isUrl } from '../packages/utils/src';
+export { isUrl } from '@vben/utils';
 
 /**
  * 鏌ユ壘鏁扮粍瀵硅薄鐨勬煇涓笅鏍�
@@ -30,3 +31,18 @@
   });
   return index;
 };
+
+/**
+ * 鍘绘帀琛ㄦ牸鍒楃殑鍥哄畾锛坒ixed锛夐厤缃�
+ *
+ * 鐢ㄤ簬銆屾煡鐪嬪鎵规槑缁� / 璇︽儏銆嶇瓑鍙鍦烘櫙锛氭鏃惰〃鏍煎鍣ㄨ緝绐勶紝
+ * 鍥哄畾鍒椾細鎸ゅ崰鍙瀹藉害锛屾妸浜у搧鍚嶇О銆佸崟浣嶃�佸娉ㄧ瓑鍒楅伄浣忋��
+ *
+ * @param columns 鍘熷琛ㄦ牸鍒楅厤缃�
+ */
+export function withoutFixedColumns<T>(columns?: null | T[]): T[] {
+  return (columns ?? []).map((column) => {
+    const { fixed: _fixed, ...rest } = column as Recordable<any>;
+    return rest as unknown as T;
+  });
+}

--
Gitblit v1.9.3