migrate i18n helper.js some code to typescript and migrate vue file to composition API and typescript

This commit is contained in:
MaysWind
2025-01-11 00:49:21 +08:00
parent 25c8b9baf8
commit 8da3d2aa35
30 changed files with 937 additions and 492 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export class LeafletMapProvider implements MapProvider {
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public asyncLoadAssets(language: string): Promise<unknown> {
public asyncLoadAssets(language?: string): Promise<unknown> {
return Promise.all([
import('leaflet/dist/leaflet.css'),
import('leaflet/dist/leaflet-src.esm.js').then(leaflet => LeafletMapProvider.Leaflet = leaflet)