Skip to content

Commit af9574e

Browse files
committed
fix: 修复request方法返回值Bug
1 parent 1264c32 commit af9574e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/demo/component/PersonProTable.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</div>
1717
</template>
1818

19-
<script>
20-
import { DML } from '@/types/common';
19+
<script lang="ts">
20+
import { DataSource, DML, Params } from '@/types/common';
2121
import { Vue, Component, Prop } from 'vue-property-decorator';
2222

2323
@Component({
@@ -100,11 +100,11 @@ export default class PersonProTable extends Vue {
100100
}],
101101
}
102102

103-
async request(axiosParams) {
103+
async request(axiosParams: Params) : Promise<DataSource> {
104104
const res = await this.$PROCRUD.crud(DML.SELECT, 'person', axiosParams);
105105
return {
106106
data: res.data.list,
107-
total: res.total,
107+
total: res.data.total,
108108
};
109109
}
110110
}

0 commit comments

Comments
 (0)