diff --git a/web/build/vite/index.ts b/web/build/vite/index.ts index 7245340..e8b2847 100644 --- a/web/build/vite/index.ts +++ b/web/build/vite/index.ts @@ -27,7 +27,116 @@ const preloadOfflineIcons = (iconData: Record): string[] => { return a }, []) } - +const offlineIcons = [ + "fa:stack-exchange", + "fa:leanpub", + "ep:house", + "fa-solid:house-user", + "fa:bars", + "fa-solid:file-signature", + "fa:hdd-o", + "fa:universal-access", + "fa:tag", + "fa:edit", + "fa:archive", + "fa:edit", + "fa-solid:grin-stars", + "ep:guide", + "ep:document", + "fa:address-book", + "ep:avatar", + "fa-solid:box", + "ep:document-copy", + "ep:position", + "ep:aim", + "ep:place", + "ep:message", + "ep:connection", + "fa-solid:project-diagram", + "fa-solid:book", + "ep:data-analysis", + "ep:trend-charts", + "ep:set-up", + "ep:bicycle", + "ep:notebook", + "ep:link", + "ep:home-filled", + "fa:y-combinator", + "ep:iphone", + "fa-solid:smog", + "ep:bell", + "ep:connection", + "ep:user", + "fa:key", + "fa:reddit-square", + "fa:wpforms", + "ep:promotion", + "ep:warning-filled", + "fa:edit", + "fa:hdd-o", + "fa-solid:mail-bulk", + "fa:area-chart", + "ep:avatar", + "fa:tree", + "ep:platform", + "fa-solid:tools", + "ep:mostly-cloudy", + "fa:cog", + "fa:square-o", + "ep:bell-filled", + "ep:menu", + "ep:coffee-cup", + "fa:fighter-jet", + "ep:message-box", + "fa:object-ungroup", + "fa-solid:layer-group", + "fa-solid:cogs", + "ep:calendar", + "ep:operation", + "fa:battery-1", + "fa:address-card", + "ep:takeaway-box", + "fa:eye", + "fa:tasks", + "fa:user-secret", + "fa:mobile", + "ep:histogram", + "fa:exclamation-triangle", + "fa:address-book-o", + "ep:upload-filled", + "ep:connection", + "fa:assistive-listening-systems", + "ep:folder-opened", + "ep:management", + "ep:document-copy", + "ep:collection", + "ep:files", + "fa:wpexplorer", + "fa-solid:tasks", + "ep:chat-dot-round", + "fa:connectdevelop", + "ep:document-copy", + "ep:tools", + "fa:dedent", + "fa:slack", + "fa:dashcube", + "fa:rocket", + "fa:battery-3", + "fa:square", + "ep:monitor", + "ep:calendar", + "ep:collection-tag", + "fa:power-off", + "fa:map-marker", + "ep:monitor", + "fa:tasks", + "fa:delicious", + "ep:copy-document", + "fa:road", + "ep:pie-chart", + "fa:medium", + "fa-solid:hdd" +] export function createVitePlugins() { const root = process.cwd() @@ -42,6 +151,7 @@ export function createVitePlugins() { UnoCSS(), progress(), PurgeIcons({ + //included: offlineIcons,// included: preloadOfflineIcons(IconJson) }), ElementPlus({}), diff --git a/web/src/views/HandDevice/Home/components/constants/map.constants.ts b/web/src/views/HandDevice/Home/components/constants/map.constants.ts index 7540af1..7209234 100644 --- a/web/src/views/HandDevice/Home/components/constants/map.constants.ts +++ b/web/src/views/HandDevice/Home/components/constants/map.constants.ts @@ -46,8 +46,9 @@ export const DEFAULT_MARKERS = [] // 地图默认配置 export const MAP_DEFAULTS = { - // tileUrl: 'http://qtbj.icpcdev.site/roadmap/{z}/{x}/{y}.png', tileUrl:'https://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}', + // tileUrl: 'http://qtbj.icpcdev.site/roadmap/{z}/{x}/{y}.png', + center: [116.3912757, 39.906217] as [number, number], zoom: 10, maxZoom: 18, diff --git a/web/src/views/gas/handdetector/index.vue b/web/src/views/gas/handdetector/index.vue index 6701795..1dc6fb3 100644 --- a/web/src/views/gas/handdetector/index.vue +++ b/web/src/views/gas/handdetector/index.vue @@ -71,7 +71,7 @@ @selection-change="handleRowCheckboxChange" > - +