feat: 🚀 增加容错性
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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", "删除成功 !");
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user