refactor(web-ele): 移除未使用的工具函数

- 删除了 utils/index.ts 中未使用的树处理和类型判断函数
- 更新了相关文件中的导入路径
- 优化了代码结构,提高了代码的可读性和维护性
This commit is contained in:
吃货
2025-07-13 09:08:12 +08:00
parent 2464bf8e8f
commit 8f8f3481ff
8 changed files with 6 additions and 566 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { useVbenForm } from '#/adapter/form';
import { handleTree } from '#/utils';
import { handleTree } from '@vben/utils';
import * as ProductCategoryApi from '#/api/mall/product/category';
import * as ProductBrandApi from '#/api/mall/product/brand';
import { watch } from 'vue';

View File

@@ -226,11 +226,10 @@
</template>
<script lang="ts" setup>
import { copyValueToTarget } from '#/utils';
import { formatToFraction } from '@vben/utils';
import { formatToFraction, isEmpty } from '@vben/utils';
import type { PropertyAndValues, RuleConfig } from './model';
import UploadImg from '#/components/upload/image-upload.vue';
import { ElTable, ElInput, ElMessage } from 'element-plus';
import { isEmpty } from '#/utils/is';
import type { MallSpuApi } from '#/api/mall/product/spu';
import { ref, watch } from 'vue';
import type { PropType } from 'vue';