mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
Merge branch 'master' of https://codeup.aliyun.com/648097ddb583fece2f059e59/vue/fe-manage
This commit is contained in:
@@ -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;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user