hookehuyr

refactor: 移除未使用的Vant组件和冗余的默认值设置

清理未使用的Vant组件声明以减小打包体积
移除LearningRecordsPage中study_count和count的默认值设置,因其已在后端处理
...@@ -29,38 +29,14 @@ declare module 'vue' { ...@@ -29,38 +29,14 @@ declare module 'vue' {
29 TermsPopup: typeof import('./components/ui/TermsPopup.vue')['default'] 29 TermsPopup: typeof import('./components/ui/TermsPopup.vue')['default']
30 UploadVideoPopup: typeof import('./components/ui/UploadVideoPopup.vue')['default'] 30 UploadVideoPopup: typeof import('./components/ui/UploadVideoPopup.vue')['default']
31 UserAgreement: typeof import('./components/ui/UserAgreement.vue')['default'] 31 UserAgreement: typeof import('./components/ui/UserAgreement.vue')['default']
32 - VanActionSheet: typeof import('vant/es')['ActionSheet']
33 VanButton: typeof import('vant/es')['Button'] 32 VanButton: typeof import('vant/es')['Button']
34 - VanCalendar: typeof import('vant/es')['Calendar']
35 - VanCellGroup: typeof import('vant/es')['CellGroup']
36 - VanCheckbox: typeof import('vant/es')['Checkbox']
37 - VanCol: typeof import('vant/es')['Col']
38 - VanConfigProvider: typeof import('vant/es')['ConfigProvider']
39 - VanDatePicker: typeof import('vant/es')['DatePicker']
40 - VanDialog: typeof import('vant/es')['Dialog']
41 - VanDivider: typeof import('vant/es')['Divider']
42 - VanEmpty: typeof import('vant/es')['Empty']
43 VanField: typeof import('vant/es')['Field'] 33 VanField: typeof import('vant/es')['Field']
44 - VanForm: typeof import('vant/es')['Form']
45 VanIcon: typeof import('vant/es')['Icon'] 34 VanIcon: typeof import('vant/es')['Icon']
46 VanImage: typeof import('vant/es')['Image'] 35 VanImage: typeof import('vant/es')['Image']
47 - VanImagePreview: typeof import('vant/es')['ImagePreview']
48 VanList: typeof import('vant/es')['List'] 36 VanList: typeof import('vant/es')['List']
49 - VanLoading: typeof import('vant/es')['Loading']
50 - VanNavBar: typeof import('vant/es')['NavBar']
51 - VanOverlay: typeof import('vant/es')['Overlay']
52 - VanPicker: typeof import('vant/es')['Picker']
53 - VanPickerGroup: typeof import('vant/es')['PickerGroup']
54 VanPopup: typeof import('vant/es')['Popup'] 37 VanPopup: typeof import('vant/es')['Popup']
55 VanProgress: typeof import('vant/es')['Progress'] 38 VanProgress: typeof import('vant/es')['Progress']
56 VanRate: typeof import('vant/es')['Rate'] 39 VanRate: typeof import('vant/es')['Rate']
57 - VanRow: typeof import('vant/es')['Row']
58 - VanSwipe: typeof import('vant/es')['Swipe']
59 - VanSwipeItem: typeof import('vant/es')['SwipeItem']
60 - VanTab: typeof import('vant/es')['Tab']
61 - VanTabs: typeof import('vant/es')['Tabs']
62 - VanTag: typeof import('vant/es')['Tag']
63 - VanUploader: typeof import('vant/es')['Uploader']
64 VideoPlayer: typeof import('./components/ui/VideoPlayer.vue')['default'] 40 VideoPlayer: typeof import('./components/ui/VideoPlayer.vue')['default']
65 WechatPayment: typeof import('./components/payment/WechatPayment.vue')['default'] 41 WechatPayment: typeof import('./components/payment/WechatPayment.vue')['default']
66 } 42 }
......
...@@ -138,8 +138,6 @@ const onLoad = async () => { ...@@ -138,8 +138,6 @@ const onLoad = async () => {
138 }); 138 });
139 if (code) { 139 if (code) {
140 data.forEach((item) => { 140 data.forEach((item) => {
141 - item?.study_count = item?.study_count || 0;
142 - item?.count = item?.count || 0;
143 item.record_progress = Math.floor((item?.study_count/item?.count)*100); 141 item.record_progress = Math.floor((item?.study_count/item?.count)*100);
144 }); 142 });
145 records.value.push(...data); 143 records.value.push(...data);
......