提交添加战术计算、添加头部设置
This commit is contained in:
@ -150,6 +150,7 @@ export default {
|
||||
// }
|
||||
// });
|
||||
filePaths.forEach((item) => {
|
||||
item = item.replace(/\\/g, "/");
|
||||
// 使用正则表达式进行不区分大小写的匹配
|
||||
if (/\.(png|jpg|jpeg)$/i.test(item)) {
|
||||
this.picturePaths.push(item);
|
||||
@ -304,7 +305,7 @@ export default {
|
||||
let p_id = getKeyOfSelectedNode(this.$parent.treeObj, "source_id");
|
||||
filePaths.forEach((item) => {
|
||||
console.log('item', item);
|
||||
let name = this.getLastPathComponent(item, ['clt', 'json', 'pak', 'kml', 'kmz', 'shp', 'geojson', 'geoJson', 'czml', 'jct', 'mif', 'tab', 'csv']);
|
||||
let name = this.getLastPathComponent(item, ['clt', 'json', 'pak', 'kml', 'kmz', 'shp', 'geojson', 'geoJson', 'czml', 'jct', 'mif', 'tab', 'csv', 'mbtiles']);
|
||||
console.log("name", name);
|
||||
let source_type = "layer";
|
||||
if (item.endsWith(".clt") || item.endsWith(".json")) {
|
||||
@ -720,7 +721,7 @@ export default {
|
||||
window.newFuzzySearch(
|
||||
`treeDemo`,
|
||||
"#keyword",
|
||||
["bim", "sonShp", "gdbShp"],
|
||||
["sonShp", "gdbShp"],
|
||||
true,
|
||||
"#queryButton"
|
||||
); /**/
|
||||
|
||||
Reference in New Issue
Block a user