504be555 by lihua

fix

1 parent 59fe4107
......@@ -90,13 +90,13 @@ const getLabelPageData = async () => {
}
const res: any = await getLabelPageList(params);
if (res.code == proxy.$passCode) {
tableInfo.value.loading = false;
if (res?.code == proxy.$passCode) {
labelPageList.value = res.data.records;
tableInfo.value.page.rows = res.data.totalRows;
tableInfo.value.page.limit = res.data.pageSize
tableInfo.value.page.curr = res.data.pageIndex
tableInfo.value.data = labelPageList.value;
tableInfo.value.loading = false;
} else {
proxy.$ElMessage.error(res.msg);
}
......@@ -752,13 +752,13 @@ const searchClass = async (val: any, clear: boolean = false) => {
guids: guids.value,
}
const res: any = await getLabelPageList(params);
if (res.code == proxy.$passCode) {
tableInfo.value.loading = false;
if (res?.code == proxy.$passCode) {
labelPageList.value = res.data.records;
tableInfo.value.page.rows = res.data.totalRows;
tableInfo.value.page.limit = res.data.pageSize
tableInfo.value.page.curr = res.data.pageIndex
tableInfo.value.data = labelPageList.value;
tableInfo.value.loading = false;
} else {
proxy.$ElMessage.error(res.msg);
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!