nidapeng
2024-03-29 ff95e73d12418ee4b1e400eaceac3d4d623f85b6
company/src/components/common/MenuSelect.vue
@@ -43,6 +43,9 @@
    }
  },
  watch: {
    type: function (newVal, oldVal) {
      this.type = newVal
    },
    excludeId () {
      this.fetchData()
    }
@@ -50,7 +53,7 @@
  methods: {
    // 获取所有菜单
    fetchData () {
      if (this.type == '1' || this.type == '2')  {
      if (this.type == '1' || this.type == '2') {
        fetchTree1(this.type)
          .then(records => {
            this.data = []