12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { reactive } from 'vue'
- const original = () => {
- return {
- groupId: 0,
- active: 0,
- tabIndex: 1,
- loadingStatus: false,
- rate: 0, // 手续费
- subjectList: [], // 声部列表
- templateList: [
- 'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdc.png',
- 'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdl.png',
- 'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdK.png',
- 'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJeA.png'
- ], // 模板列表
- lessonGroup: {
- id: null,
- lessonName: '',
- lessonSubject: null as any,
- lessonDesc: '',
- lessonPrice: null as any,
- lessonCoverUrl: '',
- lessonCoverTemplateUrl: ''
- },
- lessonList: [
- // {
- // videoTitle: '',
- // videoContent: '',
- // videoUrl: '',
- // coverUrl: '',
- // posterUrl: '' // 视频封面图
- // }
- ] as any
- }
- }
- export const createState = reactive(original())
- // 重置对象
- export const resestState = () => {
- Object.assign(createState, original())
- }
|