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.
 
 
 

26 lines
528 B

import {defineStore} from 'pinia';
const carStore = defineStore(
'car',
{
state: () => ({
carInfo: {
carType: 'car',//车型
stepType: '1',//科目几
carTypeName: '小车',
types: '',//题型
contentType: '',//图片还是文字
sift: '0', //是否精选
volume: '0', //是否是密卷
knowType: '',//分类
},
webLink: 'https://www.baidu.com/'
}),
actions: {
setCar(key, value) {
this.carInfo[key] = value
},
}
})
export default carStore