feat: highlight search log keywords (#398)

This commit is contained in:
Starry
2024-06-02 18:33:43 +08:00
committed by GitHub
parent 065337c344
commit 5419a69700
6 changed files with 59 additions and 45 deletions

View File

@@ -53,6 +53,9 @@ export const logStore = defineStore({
setLogCondition(data: Recordable) {
this.conditions = { ...this.conditions, ...data };
},
getLogKeywords() {
return this.conditions.keywordsOfContent;
},
resetState() {
this.logs = [];
this.conditions = {