hjyd
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.
 
 
 
 
 

40 lines
967 B

import { defineStore } from 'pinia'
export const useDetailStore = defineStore({
id: 'detail', // id必填,且需要唯一
// state
state: () => {
return {
industry_id: '1',
example_id: '1',
hardwareExampleId: '1',
hardware_id: '1',
showRecruitDetail: false,
componentKey_case: 0,
componentKey_hardware: 0,
}
},
// actions
actions: {
changeComponentKeyCase() {
this.componentKey_case++
},
changeComponentKeyHardware() {
this.componentKey_hardware++
},
changeRecruitDetail(flag) {
this.showRecruitDetail = flag
},
updateHardwareId(hardware_id) {
this.hardware_id = hardware_id
},
updateHardwareExampleId(hardwareExampleId) {
this.hardwareExampleId = hardwareExampleId
},
updateIndustryId(industry_id) {
this.industry_id = industry_id
},
updateExampleId(example_id) {
this.example_id = example_id
},
},
})