[FIX] 修正清空访问日志无效的前端错误

原来清空方法 deleteBatchVisLog 里,logDelete 接口参数的 category 判断方式为 `searchFormState.value.category ? searchFormState.category : visLogType.value`,这样取不到 `category` 值,改成 `category: searchFormState.category ? ...` 就可以了

Signed-off-by: Loocor <loocor@gmail.com>
pull/198/head
Loocor 2024-02-08 10:34:56 +00:00 committed by 小诺
parent 02c616d024
commit 1f03b969b7
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@
//
const deleteBatchVisLog = () => {
const param = {
category: searchFormState.value.category ? searchFormState.category : visLogType.value
category: searchFormState.category ? searchFormState.category : visLogType.value
}
logApi.logDelete(param).then(() => {
tableRef.value.refresh(true)