123456789101112131415161718 |
- import {conditionSharedConfig} from "@/components/mx-condition/modules/conditionSharedConfig";
- import {useCacheStore} from "@/hooks/useCacheStore";
- import {cacheActions} from "@/hooks/defineCacheActions";
- export const useConditionSegmentLocation = function (options = {}) {
- const {dispatchCache} = useCacheStore()
- return {
- ...conditionSharedConfig,
- handler: async () => await dispatchCache(cacheActions.getSectionLocations),
- key: 'location',
- title: '地域',
- keyName: 'text',
- keyValue: 'value',
- required: true,
- ...options
- }
- }
|