fix bug
This commit is contained in:
@ -22,8 +22,7 @@ html, body, #app, .cesium-widget, .mars3d-container,
|
||||
.el-table__footer-wrapper span,
|
||||
.el-table__header-wrapper span,
|
||||
.el-table__fixed span,
|
||||
.el-table__fixed-right span,.vxe-table *,
|
||||
.vxe-table--render-default .vxe-cell span,
|
||||
.el-table__fixed-right span,
|
||||
.vxe-table--render-default .vxe-cell--title,
|
||||
.vxe-table--render-default .vxe-cell--label,
|
||||
.vxe-toolbar *,
|
||||
|
||||
@ -42,7 +42,6 @@
|
||||
<div class="title">参数</div>
|
||||
<el-form
|
||||
@submit.native.prevent="calculateShortestPath"
|
||||
label-width="140px"
|
||||
label-position="left"
|
||||
size="mini"
|
||||
:model="form"
|
||||
@ -108,7 +107,6 @@
|
||||
<div class="control-panel">
|
||||
<div class="title">隐蔽添加</div>
|
||||
<el-form
|
||||
label-width="140px"
|
||||
label-position="left"
|
||||
size="mini"
|
||||
>
|
||||
@ -130,7 +128,6 @@
|
||||
</div>
|
||||
<el-form
|
||||
@submit.native.prevent="calculateShortestPath"
|
||||
label-width="140px"
|
||||
label-position="left"
|
||||
size="mini"
|
||||
>
|
||||
@ -447,9 +444,6 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
[...document.querySelectorAll('*')].forEach(n =>
|
||||
console.log(window.getComputedStyle(n).fontFamily)
|
||||
)
|
||||
this.viewer = null
|
||||
await this.getMapOption()
|
||||
this.$nextTick(async () => {
|
||||
@ -517,7 +511,7 @@ export default {
|
||||
this.viewer.addLayer(this.accordFactoryLayer)
|
||||
this.loadShapefile() // 拿到路网数据
|
||||
// 添加地图点击事件监听,用于结束绘制
|
||||
this.viewer.on(mars3d.EventType.dblClick, (event) => {
|
||||
this.viewer.on('rightClick', (event) => {
|
||||
// 如果正在绘制,点击地图可以结束绘制(除了绘制点)
|
||||
this.graphicLayer.stopDraw()
|
||||
})
|
||||
@ -1095,7 +1089,7 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
this.$message.success('保存成功')
|
||||
this.$message.success(`保存在${response.data.path}成功`)
|
||||
})
|
||||
.catch(error => {
|
||||
});
|
||||
@ -2536,7 +2530,7 @@ export default {
|
||||
.then(response => {
|
||||
this.jsonInfo = {
|
||||
path: response.data.path,
|
||||
json: JSON.stringify(response.data.json, null, 2)
|
||||
json: JSON.stringify(this.decodeEscapedJson(response.data.json), null, 2)
|
||||
}
|
||||
this.jsonLoading = false
|
||||
})
|
||||
|
||||
@ -21,25 +21,25 @@ module.exports = defineConfig({
|
||||
})
|
||||
|
||||
/* 2. 追加 ES5 规则(只转 src,不转 node_modules) */
|
||||
config.module.rules.push({
|
||||
test: /\.js$/,
|
||||
include: path.resolve(__dirname, 'src'),
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: {ie: '11'}, // 强制 ES5
|
||||
corejs: 3,
|
||||
useBuiltIns: 'entry',
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
// config.module.rules.push({
|
||||
// test: /\.js$/,
|
||||
// include: path.resolve(__dirname, 'src'),
|
||||
// use: {
|
||||
// loader: 'babel-loader',
|
||||
// options: {
|
||||
// presets: [
|
||||
// [
|
||||
// '@babel/preset-env',
|
||||
// {
|
||||
// targets: {ie: '11'}, // 强制 ES5
|
||||
// corejs: 3,
|
||||
// useBuiltIns: 'entry',
|
||||
// },
|
||||
// ],
|
||||
// ],
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
},
|
||||
|
||||
css: {
|
||||
|
||||
Reference in New Issue
Block a user