Skip to content

Commit

Permalink
fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Yanhong committed Jul 29, 2023
1 parent 7250322 commit 74b94cc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 61 deletions.
6 changes: 3 additions & 3 deletions src/components/CesiumMap/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
</template>

<script lang="ts" setup>
defineOptions({
name: 'CesiumContainer',
});
import * as Cesium from 'cesium';
import { cesiumAccessToken } from '@/config';
import { ref, onMounted } from 'vue';
Expand All @@ -14,6 +11,9 @@ import 'cesium/Build/Cesium/Widgets/widgets.css';
Cesium.Ion.defaultAccessToken = cesiumAccessToken;
const cesiumContainer = ref<HTMLDivElement>();
defineOptions({
name: 'CesiumContainer',
});
onMounted(() => {
const viewer = new Cesium.Viewer(cesiumContainer.value as HTMLDivElement, {
terrainProvider: Cesium.createWorldTerrain(),
Expand Down
50 changes: 0 additions & 50 deletions src/components/Crud/index.vue

This file was deleted.

7 changes: 3 additions & 4 deletions src/components/Map/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
</div>
</template>
<script lang="ts" setup>
defineOptions({
name: 'MapContainer',
});
import { ref, onMounted } from 'vue';
import { initMap } from './mapOperates';
const mapContainer = ref<HTMLDivElement>();
const emits = defineEmits(['onMapReady']);
let mapIns = ref();
defineOptions({
name: 'MapContainer',
});
onMounted(() => {
mapIns.value = initMap(mapContainer.value as HTMLDivElement);
emits('onMapReady', mapIns.value);
Expand Down
7 changes: 4 additions & 3 deletions src/layout/components/AppMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
</div>
</template>
<script lang="ts" setup>
defineOptions({
name: 'AppMain',
});
import { tagViewsType } from '@/types/index';
import useAppStore from '@/store/app';
import { computed, ref, watch } from 'vue';
Expand All @@ -42,6 +39,10 @@ const sideBarWidth = ref<string>(isMenuCollapse.value ? minSidebarWidth : maxSid
const copyright = ref<string>(settings.appConfig.copyright);
const route: RouteLocationNormalizedLoaded = useRoute();
defineOptions({
name: 'AppMain',
});
function tagClose(tag: tagViewsType) {
const index = tagViews.value.indexOf(tag);
tagViews.value.splice(index, 1);
Expand Down
1 change: 0 additions & 1 deletion src/views/System/Dicts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<script lang="ts" setup>
import { ref } from 'vue';
import Crud from '@/components/Crud/index.vue';
import { tableColumnProps } from '@/types/index';
defineOptions({
name: 'SystemDicts',
Expand Down

0 comments on commit 74b94cc

Please sign in to comment.