修改错题本bug
This commit is contained in:
@@ -6,13 +6,13 @@ import {
|
||||
} from 'vue';
|
||||
|
||||
export default function useZpaging({
|
||||
pagingRef, // 必传:z-paging组件的ref
|
||||
fetchFunction, // 必传:接口请求函数
|
||||
searchKey = '' // 可选:搜索参数名,默认'searchText'
|
||||
}) {
|
||||
const total = ref(-1);
|
||||
const data_list = ref([]);
|
||||
const searchText = ref('');
|
||||
const pagingRef = ref(null);
|
||||
const queryList = async (pageNo, pageSize) => {
|
||||
try {
|
||||
const requestParams = {
|
||||
@@ -52,6 +52,7 @@ export default function useZpaging({
|
||||
}
|
||||
};
|
||||
return {
|
||||
pagingRef,
|
||||
queryList,
|
||||
reload,
|
||||
search,
|
||||
|
||||
Reference in New Issue
Block a user