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.
 
 
 

19 lines
567 B

import { storeToRefs } from 'pinia'
import { useStore } from '@/store/root'
import { getStatistics } from '@/http/api'
/**
* @param {string} tag 设备点击量:device,导航使用次数:navigation,店铺点击次数:shop,业态点击次数:industry, 搜索店铺: brandSearch
*/
export const useStatistics = (tag, rest = {}) => {
const store = useStore()
const { currentFloor } = storeToRefs(store)
const { projectCode, deviceCode } = currentFloor.value
const params = {
projectCode,
deviceCode,
tag,
...rest
}
getStatistics(params)
}