查询提交处理

This commit is contained in:
gengxin
2025-02-19 15:49:15 +08:00
parent 55eec37154
commit c10ea73468

View File

@@ -373,7 +373,8 @@ export function useThrottlePage(_url, params = {}, init = true) {
return;
}
return request(_url, params).then(r => {
state.data = params.pageNo === 1 ? r.data.list : [...state.data, ...r.data.list];
console.log("r.data --> ",r.data)
state.data = params.pageNo === 1 ? r.data : [...state.data, ...r.data];
state.totalPage = r.data.total / 10 || 1;
state.total = r.data.total;
state.loading = false;
@@ -538,7 +539,7 @@ export async function request(_url, params) {
}).then(res => {
return JSONBigIntStr.parse(res);
}).then(res => {
if (res.code === 0 || res.code === 200) {
if (res.code === 0 || res.code === 200 || res.status === 200) {
return res;
}
if (res.code === 1000 || res.code === 1002) {