fix(types): 修复naive组件回调函数参数类型错误

This commit is contained in:
Soybean
2021-09-16 07:17:08 +08:00
parent 9af8988584
commit 667282f81a
3 changed files with 398 additions and 389 deletions

View File

@@ -36,7 +36,8 @@ const options = [
}
];
function handleDropdown(key: DropdownKey) {
function handleDropdown(optionKey: string) {
const key = optionKey as DropdownKey;
if (key === 'logout') {
resetAuthState();
}