zzzz
2024-04-23 e63a9fa2b9a3d184bec76b9ce9a779c6902f91d9
src/components/foot.vue
@@ -65,7 +65,7 @@
    </div> -->
    <div
      :class="touch == 4 ? 'footDemos' : 'footDemo'"
      @click="goRouter('/warehouse', 3)"
      @click="goRouter('/warehouse', 4)"
    >
      <div class="footImgDeft">
        <img
@@ -83,7 +83,7 @@
    </div>
    <div
      :class="touch == 5 ? 'footDemos' : 'footDemo'"
      @click="goRouter('/user', 4)"
      @click="goRouter('/user', 5)"
    >
      <div class="footImgDeft">
        <img
@@ -112,16 +112,6 @@
  mounted() {},
  methods: {
    goRouter(url, index) {
      if (index === 2 || index === 3 || index === 4 || index === 5) {
        if (
          window.localStorage.getItem("USERTOKEN") === "" ||
          window.localStorage.getItem("USERTOKEN") == null ||
          window.localStorage.getItem("USERTOKEN") == undefined
        ) {
          this.$emit("close");
          return;
        }
      }
      this.touch = index;
      setTimeout(() => {
        this.touch = 0;