21 lines
354 B
TypeScript
21 lines
354 B
TypeScript
import { defineStore } from "pinia";
|
|
import { reactive } from "vue";
|
|
|
|
export const useJobStore = defineStore("job", () => {
|
|
const jobInfo = reactive<any>({});
|
|
|
|
function setInfo(job: any) {
|
|
Object.assign(jobInfo, job);
|
|
}
|
|
|
|
function resetInfo() {
|
|
Object.assign(jobInfo, {});
|
|
}
|
|
|
|
return {
|
|
jobInfo,
|
|
setInfo,
|
|
resetInfo,
|
|
};
|
|
});
|