riku
2024-05-12 fb876cbc3b21035125668f2db6ee84e47efb544f
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 {
@@ -54,10 +57,10 @@
          name: '走航监测',
          path: 'rmode'
        },
        {
          name: '网格化监测',
          path: 'gridmonitor'
        }
        // {
        //   name: '网格化监测',
        //   path: 'gridmonitor'
        // }
        // {
        //   name: '用电量监测',
        //   path: 'emode'
@@ -69,7 +72,9 @@
      ]
    };
  },
  computed: {},
  computed: {
    ...mapState(useMapAnimationStore, ['status'])
  },
  methods: {
    btnClz(selected) {
      return (