Compare commits

..

No commits in common. "d9ef0b9b840fb8672149724fd8c6832d013c744c" and "d99225eca76b26d1adde6b90fe02e1c3eab889cc" have entirely different histories.

2 changed files with 10 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "nazhua", "name": "nazhua",
"version": "0.6.3", "version": "0.6.2",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -20,9 +20,9 @@
> >
<div class="left-box"> <div class="left-box">
<server-option-box <server-option-box
v-if="showTag && serverGroupOptions.length" v-if="showTag && tagOptions.length"
v-model="filterFormData.tag" v-model="filterFormData.tag"
:options="serverGroupOptions" :options="tagOptions"
/> />
</div> </div>
<div class="right-box"> <div class="right-box">
@ -158,21 +158,13 @@ const showTag = computed(() => {
const serverList = computed(() => store.state.serverList); const serverList = computed(() => store.state.serverList);
// //
const serverCount = computed(() => store.state.serverCount); const serverCount = computed(() => store.state.serverCount);
//
const serverGroupOptions = computed(() => { const tagOptions = computed(() => store.state.serverGroup.map((i) => ({
const options = []; key: uuid(),
store.state.serverGroup.forEach((i) => { label: i.name,
if (i.servers && i.servers.length > 0) { value: i.name,
options.push({ title: `${i.servers.length}`,
key: uuid(), })));
label: i.name,
value: i.name,
title: `${i.servers.length}`,
});
}
});
return options;
});
const onlineOptions = computed(() => { const onlineOptions = computed(() => {
if (serverCount.value?.total !== serverCount.value?.online) { if (serverCount.value?.total !== serverCount.value?.online) {