From c41f8c8a75c4475831e3c7e9cde7467d2fb39950 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期五, 28 六月 2024 10:38:17 +0800 Subject: [PATCH] 提交一把 --- company/src/components/common/MenuSelect.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/company/src/components/common/MenuSelect.vue b/company/src/components/common/MenuSelect.vue index 5cfa78e..5cdb3a9 100644 --- a/company/src/components/common/MenuSelect.vue +++ b/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 = [] -- Gitblit v1.9.3