|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { getConfig, getCurrentFloor, getGuideList, getTheme, getIndexList, getQMGoShopData } from '@/http/api' |
|
|
|
import { getConfig, getCurrentFloor, getGuideList, getTheme, getQMGoShopData } from '@/http/api' |
|
|
|
import { useStore } from '@/store/root' |
|
|
|
import VConsole from 'vconsole' |
|
|
|
|
|
|
|
@ -27,10 +27,8 @@ export const useInitConfigAndMallInfo = async () => { |
|
|
|
const { buildingList, shopList } = _guideList.data |
|
|
|
store.SET_SHOP_LIST(shopList.filter(({ yaxis }) => !!yaxis)) |
|
|
|
store.SET_BUILDING_LIST(buildingList) |
|
|
|
const res = await getIndexList() |
|
|
|
const { data } = res |
|
|
|
const { |
|
|
|
data: { searchList, recommendList } |
|
|
|
} = await getQMGoShopData() |
|
|
|
store.SET_INDEX_LIST({ ...data, recommendList, hotSearch: searchList }) |
|
|
|
store.SET_INDEX_LIST({ recommendList, hotSearch: searchList }) |
|
|
|
} |
|
|
|
|