Browse Source

[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 10 months ago committed by 小诺
parent
commit
1f03b969b7
  1. 2
      snowy-admin-web/src/views/dev/log/vislog/index.vue

2
snowy-admin-web/src/views/dev/log/vislog/index.vue

@ -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)

Loading…
Cancel
Save