Files
sh-app/store/modules/large.js
T
2026-06-10 14:17:54 +08:00

26 lines
412 B
JavaScript

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
}
})