riku
2025-07-16 c23ac06446a9a1edc41cc13723e5d0b8eabdfd63
src/components/core/CoreMenu.vue
@@ -1,5 +1,5 @@
<template>
  <div class="map-mode-change p-events-auto">
  <div v-show="status == 0" class="map-mode-change p-events-auto">
    <template v-for="(item, index) in menu" :key="item.path">
      <a :class="btnClz(item.selected)" @click="navTo(index)">
        <div>{{ item.name }}</div>
@@ -41,6 +41,9 @@
</template>
<script>
import { mapState } from 'pinia';
import { useMapAnimationStore } from '@/stores/map-animation';
export default {
  data() {
    return {
@@ -55,9 +58,17 @@
          path: 'rmode'
        },
        {
          name: '网格化监测',
          path: 'gridmonitor'
          name: '走航融合',
          path: 'underwaymix'
        }
        // {
        //   name: '污染溯源2',
        //   path: 'hmode2'
        // }
        // {
        //   name: '网格化监测',
        //   path: 'gridmonitor'
        // }
        // {
        //   name: '用电量监测',
        //   path: 'emode'
@@ -69,7 +80,9 @@
      ]
    };
  },
  computed: {},
  computed: {
    ...mapState(useMapAnimationStore, ['status'])
  },
  methods: {
    btnClz(selected) {
      return (
@@ -84,6 +97,9 @@
      m[index].selected = true;
      this.$router.push(m[index].path);
    }
  },
  mounted() {
    this.navTo(0);
  }
};
</script>