lrf 11 months ago
parent
commit
6bf1cf9d78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/system/dept/index.vue

+ 2 - 2
src/views/system/dept/index.vue

@@ -85,7 +85,7 @@ const toSave = async () => {
 }
 provide('toSave', toSave)
 const toDelete = async (row) => {
-  const res = await store.del(row._id)
+  const res = await store.del(row.id)
   if ($checkRes(res, true)) {
     search()
     searchNextLevel()
@@ -93,7 +93,7 @@ const toDelete = async (row) => {
 }
 provide('toDelete', toDelete)
 const toChangeUse = async (data) => {
-  const udata = { _id: data._id, is_use: data.is_use === '0' ? '1' : '0' }
+  const udata = { id: data.id, is_use: data.is_use === '0' ? '1' : '0' }
   const res = await store.update(udata)
   if ($checkRes(res, true)) {
     searchNextLevel()