From bc35d48bada733a0a4677cce54f3aa5ce3080be6 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 20 六月 2024 17:33:35 +0800 Subject: [PATCH] 提交 --- src/views/onlineEducation/systemManage/user/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/onlineEducation/systemManage/user/index.vue b/src/views/onlineEducation/systemManage/user/index.vue index 4a0f330..5649baf 100644 --- a/src/views/onlineEducation/systemManage/user/index.vue +++ b/src/views/onlineEducation/systemManage/user/index.vue @@ -41,7 +41,9 @@ import {ElMessage, ElMessageBox} from "element-plus"; import {delCompany, getCompany} from "@/api/onlineEducation/company"; import userDialog from './components/userDialog.vue' -import {getUser} from "@/api/onlineEducation/user"; +import {delUser, getUser} from "@/api/onlineEducation/user"; +import Cookies from "js-cookie"; + const { proxy } = getCurrentInstance(); const loading = ref(false); @@ -52,7 +54,8 @@ pageSize: 10, }, total: 0, - dataList: [] + dataList: [], + }); const { queryParams, total, dataList } = toRefs(data); @@ -100,7 +103,7 @@ type: 'warning', }) .then( async() => { - const res = await delCompany(val.id) + const res = await delUser(val.id) if(res.code == 200){ ElMessage.success('数据删除成功') await getList() -- Gitblit v1.9.2