wr_1023
2026-09-03 974c13543c4534d4783eb521a5ba2af68f8b007b
src/modules/report/views/screen/index.vue
@@ -12,6 +12,7 @@
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import ScreenShell from '../../components/screen-shell.vue';
import Map from './map.vue';
import Overview from './overview.vue';
import Resource from './resource.vue';
import Carbon from './carbon.vue';
@@ -29,11 +30,14 @@
   resource: Resource,
   carbon: Carbon,
   participation: Participation,
   operation: Operation
   operation: Operation,
   map: Map
};
/** 停留在 /report/screen/index,用 query.page(或动态路由 :page)切换子页,不再强制跳走 */
const currentKey = computed<ScreenKey>(() =>
   resolveScreenKey(route.params.page as string, route.query.page as string)
);
const currentKey = computed<ScreenKey>(() =>{
   const key = resolveScreenKey(route.params.page as string, route.query.page as string);
   console.log('[screen] params.page=', route.params.page, 'query.page=', route.query.page, '=> key=', key);
   return key;
});
</script>