main
刘妍 2 weeks ago
parent 6a8fa330cf
commit a3b359b053

@ -98,7 +98,6 @@ const handlerGetLayerTree = ()=>{
// delete attribute.layers;
delete attribute.parameters;
delete attribute.highlight;
console.log("图层属性信息:",attribute.url,attribute);
if(!attribute.symbol.styleOptions){

@ -58,6 +58,10 @@
const droneData = ref();
const clickBtn = (val) => {
if (!droneData.value) {
createMessage.warning('附近没有无人机,请稍后再试');
return;
}
if (!droneData.value.approved) {
createMessage.warning('当前有用户正在操作,请稍后再试');
return;

@ -67,14 +67,12 @@ export let packagesList: PackagesType = {
const componentCacheMap = new Map<string, any>();
const loadConfig = (packageName: string, categoryName: string, keyName: string) => {
const key = packageName + categoryName + keyName;
console.log('loadConfig', key);
if (!componentCacheMap.has(key)) {
componentCacheMap.set(
key,
import(`./components/${packageName}/${categoryName}/${keyName}/config.ts`),
);
}
console.log('loadConfig', componentCacheMap.get(key));
return componentCacheMap.get(key);
};
@ -91,7 +89,6 @@ export const createComponent = async (targetData: ConfigType) => {
return new redirectChart.default();
}
const chart = await loadConfig(targetData.package, category, key);
console.log('chart', chart);
return new chart.default();
};

Loading…
Cancel
Save