|
|
@ -92,9 +92,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import { ref, computed } from 'vue' |
|
|
|
import { ref, computed,onMounted } from 'vue' |
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
|
|
|
|
|
import axios from 'axios'; |
|
|
|
// 数据定义 |
|
|
|
const tableData = ref([ |
|
|
|
{ |
|
|
@ -202,6 +202,19 @@ |
|
|
|
pagination.value.pageNum = 1 |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
// 获取数据 |
|
|
|
const id = 1 // 替换为你需要传递的 id 值 |
|
|
|
axios.post(`/admin/user/delete?id=${id}`) |
|
|
|
.then(function (response) { |
|
|
|
console.log('请求成功:', response.data) |
|
|
|
}) |
|
|
|
.catch(function (error) { |
|
|
|
console.error('请求失败:', error) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const handleCurrentChange = (val) => { |
|
|
|
pagination.value.pageNum = val |
|
|
|
} |
|
|
|