签入版本
This commit is contained in:
@@ -242,8 +242,12 @@ const [genderOptions, statusOptions] = await Promise.all([
|
||||
|
||||
### 封装为通用 Hook
|
||||
|
||||
:::warning 说明
|
||||
`ui/src/hooks/web/useDict.ts` 当前项目中尚不存在,以下为建议的封装写法,可按需自行创建。
|
||||
:::
|
||||
|
||||
```typescript
|
||||
// ui/src/hooks/web/useDict.ts
|
||||
// ui/src/hooks/web/useDict.ts(自行创建)
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { getDictItemList } from '@/api/common/index';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user