焊接首页
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user