refactor: 将字典从store 移动到@vben/stores

This commit is contained in:
xingyu4j
2025-09-04 18:36:05 +08:00
parent cf8745d844
commit 48ec3e15ab
10 changed files with 10 additions and 87 deletions

View File

@@ -1,12 +1,11 @@
// TODO @芋艿:后续再优化
// TODO @芋艿:可以共享么?
import type { DictItem } from '#/store';
import type { DictItem } from '@vben/stores';
import { useDictStore } from '@vben/stores';
import { isObject } from '@vben/utils';
import { useDictStore } from '#/store';
// TODO @dhb52top-level 调用 导致:"getActivePinia()" was called but there was no active Pinia
// 先临时移入到方法中
// const dictStore = useDictStore();