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",
"version": "0.6.3",
"version": "0.6.2",
"type": "module",
"scripts": {
"dev": "vite",

View File

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