mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
code refactor
This commit is contained in:
@@ -34,13 +34,8 @@ const initCenter = ref<MapPosition>({
|
||||
});
|
||||
const zoomLevel = ref<number>(1);
|
||||
|
||||
const mapSupported = computed<boolean>(() => {
|
||||
return !!mapInstance.value;
|
||||
});
|
||||
|
||||
const mapDependencyLoaded = computed<boolean>(() => {
|
||||
return mapInstance.value?.dependencyLoaded || false;
|
||||
});
|
||||
const mapSupported = computed<boolean>(() => !!mapInstance.value);
|
||||
const mapDependencyLoaded = computed<boolean>(() => mapInstance.value?.dependencyLoaded || false);
|
||||
|
||||
const finalMapStyle = computed<Record<string, unknown>>(() => {
|
||||
const styles: Record<string, unknown> = copyObjectTo(props.mapStyle, {});
|
||||
|
||||
Reference in New Issue
Block a user