1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| import { ref, computed, reactive, toRefs } from 'vue'
| import { defineStore } from 'pinia'
| import { GetQuestionMasterDetail } from "../api/mobile/question"
|
| export const useMobileQurstionStore = defineStore('mobilequestion', () => {
| const state = reactive({
| type: null,
| paper: null,
| questionIndex: 0
| })
|
| return { ...toRefs(state) }
| }, {
| persist: false,
| // persist: {
| // enabled: true,
| // //strategies: [{storage: localStorage, paths: ['basicInfo']}]
| // }
| })
|
|