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