refactor: 优化pinia setup store组合式函数写法

Former-commit-id: 27347ede51d0952d3422c3a6c3a86652f91e5639
This commit is contained in:
haoxr
2022-12-18 15:27:53 +08:00
parent fe49485563
commit 2a36afae16
27 changed files with 944 additions and 973 deletions

View File

@@ -168,10 +168,10 @@ function handleDelete(row: any) {
ElMessage.success('删除成功');
})
.catch(() => {
console.log(`删除失败`);
ElMessage.error('删除失败');
});
})
.catch(() => ElMessage.info('已取消删除'));
.catch(() => ElMessage.warning('已取消删除'));
}
/**