提交
This commit is contained in:
@ -14,6 +14,10 @@ const yaml = require("js-yaml");
|
|||||||
let Store = require('electron-store')
|
let Store = require('electron-store')
|
||||||
Store.initRenderer();
|
Store.initRenderer();
|
||||||
|
|
||||||
|
process.on('unhandledRejection', (reason) => {
|
||||||
|
console.error('主进程异步异常:', reason);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// 开发环境路径处理 - 确保添加正确的file协议
|
// 开发环境路径处理 - 确保添加正确的file协议
|
||||||
const devSplashPath = path.resolve(
|
const devSplashPath = path.resolve(
|
||||||
|
|||||||
@ -96,7 +96,7 @@ const initTreeCallBack = () => {
|
|||||||
layers.sort((obj1, obj2) => {
|
layers.sort((obj1, obj2) => {
|
||||||
return obj1.detail.layerIndex - obj2.detail.layerIndex;
|
return obj1.detail.layerIndex - obj2.detail.layerIndex;
|
||||||
});
|
});
|
||||||
if (window.earth_ts) {
|
if ((window as any).earth_ts) {
|
||||||
for (let i = 0; i < layers.length; i++) {
|
for (let i = 0; i < layers.length; i++) {
|
||||||
// initMapData(layers[i].sourceType, layers[i].detail, null)
|
// initMapData(layers[i].sourceType, layers[i].detail, null)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
//@ts-nocheck
|
||||||
import {ref, reactive, onMounted, nextTick} from "vue";
|
import {ref, reactive, onMounted, nextTick} from "vue";
|
||||||
import {useRouter, useRoute} from "vue-router";
|
import {useRouter, useRoute} from "vue-router";
|
||||||
import Cabin from "./cabin.vue"
|
import Cabin from "./cabin.vue"
|
||||||
|
|||||||
@ -163,6 +163,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
//@ts-nocheck
|
||||||
import { reactive, onMounted, onBeforeUnmount, watch } from 'vue'
|
import { reactive, onMounted, onBeforeUnmount, watch } from 'vue'
|
||||||
import { Decimal } from 'decimal.js'
|
import { Decimal } from 'decimal.js'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
|||||||
Reference in New Issue
Block a user