You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
428 B

import {storeToRefs} from 'pinia';
import {useAdminStore} from '@/store/index.js';
const adminStore = useAdminStore();
const {marketList} = storeToRefs(adminStore);
// 地区映射
export const marketMapping = marketList.value;
console.log('marketList:', marketList)
// 反向映射
export const reverseMarketMapping = Object.entries(marketMapping).reduce((acc, [key, value]) => {
acc[value] = key;
return acc;
}, {});