feat: 🚀 增加容错性

This commit is contained in:
2025-10-16 16:39:17 +08:00
parent 9aa3782667
commit f08b094efc
5 changed files with 8 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ const handleSearch = async (params: any) => {
dataStore.initParam = cloneDeep(params);
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTableRef.value!.getTableList();
proTableRef?.value!.getTableList();
});
};
//重置
@@ -87,7 +87,7 @@ const handleReset = () => {
dataStore.initParam = cloneDeep(RULE_FORM);
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTableRef.value!.getTableList();
proTableRef?.value!.getTableList();
});
};
</script>

View File

@@ -91,7 +91,7 @@ const handleSearch = async (params: any) => {
dataStore.initParam = cloneDeep(params);
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTableRef.value!.getTableList();
proTableRef?.value!.getTableList();
});
};
//重置
@@ -99,7 +99,7 @@ const handleReset = () => {
dataStore.initParam = cloneDeep(RULE_FORM);
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTableRef.value!.getTableList();
proTableRef?.value!.getTableList();
});
};

View File

@@ -21,7 +21,7 @@ export const handleDel = (params: any) => {
});
const result = await getSubscribeDelApi(ids.join(","));
if (result?.code === 0) {
proTable.value!.getTableList();
proTable?.value!.getTableList();
useMsg("success", "删除成功 ");
}
})

View File

@@ -101,7 +101,7 @@ const handleSearch = async (params: any) => {
dataStore.initParam = cloneDeep(params);
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTable.value!.getTableList();
proTable?.value!.getTableList();
});
};
//重置
@@ -110,7 +110,7 @@ const handleReset = () => {
init();
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTable.value!.getTableList();
proTable?.value!.getTableList();
});
};
const handleClickSuccess = (row: any) => {

View File

@@ -25,7 +25,7 @@ export const handleReSet = async (params: any) => {
const result = await getSubscribeResetListApi({ id });
if (result?.code === 0) {
useMsg("success", "数据刷新成功 ");
proTable.value!.getTableList();
proTable?.value!.getTableList();
}
};