riku
2024-07-03 f57633ef165ae24ae858894e3b9583a00d3ef7f6
src/components/core/CoreMenu.vue
@@ -1,6 +1,6 @@
<template>
  <div class="map-mode-change p-events-auto">
    <template v-for="(item, index) in menu" :key="index">
  <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>
      </a>
@@ -41,6 +41,9 @@
</template>
<script>
import { mapState } from 'pinia';
import { useMapAnimationStore } from '@/stores/map-animation';
export default {
  data() {
    return {
@@ -55,9 +58,13 @@
          path: 'rmode'
        },
        {
          name: '网格化监测',
          path: 'gridmonitor'
          name: '污染溯源2',
          path: 'hmode2'
        }
        // {
        //   name: '网格化监测',
        //   path: 'gridmonitor'
        // }
        // {
        //   name: '用电量监测',
        //   path: 'emode'
@@ -69,7 +76,9 @@
      ]
    };
  },
  computed: {},
  computed: {
    ...mapState(useMapAnimationStore, ['status'])
  },
  methods: {
    btnClz(selected) {
      return (