From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 15 七月 2022 14:43:40 +0800
Subject: [PATCH] add cluster pwd

---
 src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue b/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue
index ea90873..79ed391 100644
--- a/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue
+++ b/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue
@@ -33,9 +33,10 @@
       let res = {};
       try {
         res = await unbind({
-          ids: [this.id],
+          id: this.id,
           password: this.password,
           username: JSON.parse(sessionStorage.getItem("userInfo")).username,
+          userId: JSON.parse(sessionStorage.getItem("userInfo")).id,
         });
       } catch (err) {
         this.$notify({
@@ -52,7 +53,7 @@
           duration: 2500,
           offset: 57,
         });
-        this.$emit("close");
+        this.$emit("reflash");
       } else {
         this.$notify({
           type: "error",

--
Gitblit v1.8.0