diff --git a/src/components/VanillaJsonEditor.vue b/src/components/VanillaJsonEditor.vue index d79cc59a7..293adef61 100644 --- a/src/components/VanillaJsonEditor.vue +++ b/src/components/VanillaJsonEditor.vue @@ -77,7 +77,7 @@ const documentProperties = computed<{ content?: string size?: string }>(() => { - if (showDocumentProperties) { + if (showDocumentProperties.value) { const data = jsonEditor.get() let content let code diff --git a/src/main.ts b/src/main.ts index 2815f7d2f..cfe898816 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,4 @@ import config from './config' -import EventBus from '@/plugins/EventBus.js' import App from '@/App.vue' import axios from '@/plugins/Axios' import { createPiniaPersist } from '@/plugins/PiniaPersist' @@ -13,10 +12,6 @@ const $apiBase = import.meta.env.PROD ? config.apiOrigin : (import.meta.env.VITE const pinia = createPinia() const app = createApp(App) - app.config.globalProperties.$axios = axios - app.config.globalProperties.$eventBus = EventBus - app.provide('$axios', axios) - app.provide('$eventBus', EventBus) axios.$apiBase = $apiBase const piniaPersistPlugin = await createPiniaPersist({ diff --git a/src/tools/3dView/3dView.vue b/src/tools/3dView/3dView.vue index e12357766..dfdd2d5e8 100644 --- a/src/tools/3dView/3dView.vue +++ b/src/tools/3dView/3dView.vue @@ -86,6 +86,7 @@ const rootPath = computed(() => { const path = rootFile.value.webkitRelativePath || rootFile.value.name return path.replace(fileName.value || '', '') } + return '' }) function initScene() { diff --git a/src/tools/geoJson/child/addService.vue b/src/tools/geoJson/child/AddService.vue similarity index 74% rename from src/tools/geoJson/child/addService.vue rename to src/tools/geoJson/child/AddService.vue index 9e458752b..01d26cdc4 100644 --- a/src/tools/geoJson/child/addService.vue +++ b/src/tools/geoJson/child/AddService.vue @@ -1,11 +1,10 @@