import { defineStore } from 'pinia' import { ref, computed } from 'vue' import {reqHJIndexData} from '@/api/hj.js' export const useLargeStore = defineStore('large', () => { const hjIndexData = ref(null) /** * 获取焊接首页数据 */ const fetchHJIndex = (projectId)=>{ reqHJIndexData(projectId).then(res=>{ hjIndexData.value = res.data }) } return { hjIndexData, fetchHJIndex } })