修改单选的问题

This commit is contained in:
NiSen
2023-10-10 20:45:54 +08:00
parent 47e180b9f4
commit cb64a21a33
2 changed files with 2 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ const useTotalPage = (_url, params, config = {}) => {
function fetch() { function fetch() {
state.loading = true; state.loading = true;
return http[methods](unref(url), !s[1] ? unref(params) : { params: unref(params) }, { ...config }).then(r => { return http[methods](unref(url), !s[1] ? unref(params) : { params: unref(params) }, { ...config }).then(r => {
state.data = r.data?.records || 0; state.data = r.data?.records || [];
state.total = r.data?.total || 0; state.total = r.data?.total || 0;
state.loading = false; state.loading = false;
}) })

View File

@@ -67,6 +67,7 @@
:pagination="false" :pagination="false"
:row-selection="rowSelection" :row-selection="rowSelection"
:scroll="{ x: 'max-content' }" :scroll="{ x: 'max-content' }"
row-key="id"
> >
<template #action="{ text, record, index }"> <template #action="{ text, record, index }">
<a-space :key="record.id"> <a-space :key="record.id">