Skip to content

Commit

Permalink
admin support search
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Nov 17, 2023
1 parent 43d648d commit 3673567
Show file tree
Hide file tree
Showing 6 changed files with 1,035 additions and 593 deletions.
12 changes: 8 additions & 4 deletions web/ui/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ import {onBeforeUnmount, ref} from "vue";
const nodesStore = useNodesStore()
nodesStore.GetNodes()
// auto refresh
const checked1 = ref(true)
const checked1Disable = ref(true)
let interval = 0
const refresh = () => {
nodesStore.GetNodes()
}
const checked1 = ref(false)
const checked1Disable = ref(false)
let interval = null
refresh()
if (checked1.value) {
interval = setInterval(refresh, 1000)
}
const changeSwitch = () => {
if (checked1.value) {
interval = setInterval(refresh, 1000)
Expand Down
Loading

0 comments on commit 3673567

Please sign in to comment.