This commit is contained in:
MaysWind
2023-06-24 18:30:49 +08:00
parent fb7790ba4a
commit 10df947efe
+2 -2
View File
@@ -48,7 +48,7 @@ export default {
return { return {
mapSupported: !!this.mapHolder, mapSupported: !!this.mapHolder,
mapDependencyLoaded: this.mapHolder.dependencyLoaded, mapDependencyLoaded: this.mapHolder && this.mapHolder.dependencyLoaded,
mapInited: false, mapInited: false,
initCenter: { initCenter: {
latitude: 0, latitude: 0,
@@ -105,7 +105,7 @@ export default {
if (!this.mapHolder.inited) { if (!this.mapHolder.inited) {
const languageInfo = this.$locale.getCurrentLanguageInfo(); const languageInfo = this.$locale.getCurrentLanguageInfo();
initMapInstance(this.mapHolder, this.$refs.map, { initMapInstance(this.mapHolder, this.$refs.map, {
language: languageInfo ? languageInfo.code : null, language: languageInfo ? languageInfo.code : null,
initCenter: this.initCenter, initCenter: this.initCenter,