wujingjing
2025-02-28 389e1b4cca3935a5d16df18f51cb147bcf795977
setThemeById
已修改2个文件
4 ■■■■ 文件已修改
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/LayerControl.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/ThemeControl.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/LayerControl.vue
@@ -76,7 +76,7 @@
import vectorMap from '/@/assets/images/business/map/vector_map.png';
const props = defineProps(['olMap']);
const emit = defineEmits(['close']);
const activeSourceType = computed(() => props.olMap.activeSourceType.value);
const activeSourceType = computed(() => props.olMap?.activeSourceType.value);
const defaultProps = {
    children: 'children',
    label: 'title',
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/ThemeControl.vue
@@ -183,7 +183,7 @@
});
const handleThemeChange = async (val, themeGroup) => {
    props.olMap.changeTheme(val);
    props.olMap.setThemeById(val);
};
const cancelTheme = (themeId: string) => {
    themeInfo.value.find((item) => item.id === themeId).activeTheme = null;