hookehuyr

feat(map): 添加地图加载状态管理和错误处理功能

重构地图组件,增加加载状态管理和错误处理机制:
1. 添加加载中和错误状态UI展示
2. 实现带指数退避的重试机制
3. 优化错误信息提示
4. 清理未使用的组件导入
1 { 1 {
2 "globals": { 2 "globals": {
3 "EffectScope": true, 3 "EffectScope": true,
4 - "ElMessage": true,
5 "computed": true, 4 "computed": true,
6 "createApp": true, 5 "createApp": true,
7 "customRef": true, 6 "customRef": true,
......
...@@ -13,10 +13,6 @@ declare module '@vue/runtime-core' { ...@@ -13,10 +13,6 @@ declare module '@vue/runtime-core' {
13 AudioBackground1: typeof import('./src/components/audioBackground1.vue')['default'] 13 AudioBackground1: typeof import('./src/components/audioBackground1.vue')['default']
14 AudioList: typeof import('./src/components/audioList.vue')['default'] 14 AudioList: typeof import('./src/components/audioList.vue')['default']
15 BottomNav: typeof import('./src/components/BottomNav.vue')['default'] 15 BottomNav: typeof import('./src/components/BottomNav.vue')['default']
16 - ElButton: typeof import('element-plus/es')['ElButton']
17 - ElInput: typeof import('element-plus/es')['ElInput']
18 - ElOption: typeof import('element-plus/es')['ElOption']
19 - ElSelect: typeof import('element-plus/es')['ElSelect']
20 Floor: typeof import('./src/components/Floor/index.vue')['default'] 16 Floor: typeof import('./src/components/Floor/index.vue')['default']
21 InfoPopup: typeof import('./src/components/InfoPopup.vue')['default'] 17 InfoPopup: typeof import('./src/components/InfoPopup.vue')['default']
22 InfoPopupLite: typeof import('./src/components/InfoPopupLite.vue')['default'] 18 InfoPopupLite: typeof import('./src/components/InfoPopupLite.vue')['default']
...@@ -28,25 +24,9 @@ declare module '@vue/runtime-core' { ...@@ -28,25 +24,9 @@ declare module '@vue/runtime-core' {
28 RouterLink: typeof import('vue-router')['RouterLink'] 24 RouterLink: typeof import('vue-router')['RouterLink']
29 RouterView: typeof import('vue-router')['RouterView'] 25 RouterView: typeof import('vue-router')['RouterView']
30 SvgIcon: typeof import('./src/components/Floor/svgIcon.vue')['default'] 26 SvgIcon: typeof import('./src/components/Floor/svgIcon.vue')['default']
31 - VanBackTop: typeof import('vant/es')['BackTop']
32 - VanButton: typeof import('vant/es')['Button']
33 - VanCol: typeof import('vant/es')['Col']
34 - VanConfigProvider: typeof import('vant/es')['ConfigProvider']
35 VanDialog: typeof import('vant/es')['Dialog'] 27 VanDialog: typeof import('vant/es')['Dialog']
36 - VanField: typeof import('vant/es')['Field']
37 - VanFloatingPanel: typeof import('vant/es')['FloatingPanel']
38 VanIcon: typeof import('vant/es')['Icon'] 28 VanIcon: typeof import('vant/es')['Icon']
39 - VanImage: typeof import('vant/es')['Image']
40 - VanImagePreview: typeof import('vant/es')['ImagePreview']
41 - VanOverlay: typeof import('vant/es')['Overlay']
42 VanPopup: typeof import('vant/es')['Popup'] 29 VanPopup: typeof import('vant/es')['Popup']
43 - VanRow: typeof import('vant/es')['Row']
44 - VanSlider: typeof import('vant/es')['Slider']
45 - VanSwipe: typeof import('vant/es')['Swipe']
46 - VanSwipeItem: typeof import('vant/es')['SwipeItem']
47 - VanTab: typeof import('vant/es')['Tab']
48 - VanTabs: typeof import('vant/es')['Tabs']
49 - VanToast: typeof import('vant/es')['Toast']
50 VRViewer: typeof import('./src/components/VRViewer/index.vue')['default'] 30 VRViewer: typeof import('./src/components/VRViewer/index.vue')['default']
51 } 31 }
52 } 32 }
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
2 export {} 2 export {}
3 declare global { 3 declare global {
4 const EffectScope: typeof import('vue')['EffectScope'] 4 const EffectScope: typeof import('vue')['EffectScope']
5 - const ElMessage: typeof import('element-plus/es')['ElMessage']
6 const computed: typeof import('vue')['computed'] 5 const computed: typeof import('vue')['computed']
7 const createApp: typeof import('vue')['createApp'] 6 const createApp: typeof import('vue')['createApp']
8 const customRef: typeof import('vue')['customRef'] 7 const customRef: typeof import('vue')['customRef']
......
This diff is collapsed. Click to expand it.