This commit is contained in:
zh
2025-11-06 10:05:05 +08:00
parent 790bead687
commit e47eb61f6b
4 changed files with 7 additions and 1 deletions

View File

@ -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(

View File

@ -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)
} }

View File

@ -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"

View File

@ -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'