mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-20 11:19:36 +08:00
Compare commits
3 Commits
203b86e0e6
...
51197a1c05
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51197a1c05 | ||
|
|
a0e066c04f | ||
|
|
513a88d37e |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nazhua",
|
"name": "nazhua",
|
||||||
"version": "0.6.5",
|
"version": "0.6.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -40,8 +40,6 @@ Nazhua提供了丰富的配置选项:
|
|||||||
|
|
||||||
## 🤝 赞助商
|
## 🤝 赞助商
|
||||||
|
|
||||||
> 按服务商字母排序,不分先后
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
@ -51,13 +49,6 @@ Nazhua提供了丰富的配置选项:
|
|||||||
<br />
|
<br />
|
||||||
<strong>VMISS</strong>
|
<strong>VMISS</strong>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
|
||||||
<a href="https://yxvm.com" target="_blank" title="YXVM,提供香港、新加坡、日本的云服务器与物理服务器">
|
|
||||||
<img src="./.github/images/yxvm-logo.jpg" width="200px;" alt="YXVM"/>
|
|
||||||
</a>
|
|
||||||
<br />
|
|
||||||
<strong>YXVM</strong>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@ -244,9 +244,11 @@ const localData = {
|
|||||||
refreshData: window.localStorage.getItem('nazhua_monitor_refresh_data'),
|
refreshData: window.localStorage.getItem('nazhua_monitor_refresh_data'),
|
||||||
chartType: window.localStorage.getItem('nazhua_monitor_chart_type'),
|
chartType: window.localStorage.getItem('nazhua_monitor_chart_type'),
|
||||||
};
|
};
|
||||||
|
localData.peakShaving = validate.isSet(localData.peakShaving) ? localData.peakShaving === 'true' : false;
|
||||||
|
localData.refreshData = validate.isSet(localData.refreshData) ? localData.refreshData === 'true' : true;
|
||||||
|
|
||||||
const peakShaving = validate.isSet(localData.peakShaving) ? ref(localData.peakShaving) : ref(false);
|
const peakShaving = ref(localData.peakShaving);
|
||||||
const refreshData = validate.isSet(localData.refreshData) ? ref(localData.refreshData) : ref(true);
|
const refreshData = ref(localData.refreshData);
|
||||||
const showCates = ref({});
|
const showCates = ref({});
|
||||||
const monitorData = ref([]);
|
const monitorData = ref([]);
|
||||||
const longPressTimer = ref(null);
|
const longPressTimer = ref(null);
|
||||||
|
|||||||
@ -89,6 +89,7 @@ import {
|
|||||||
onActivated,
|
onActivated,
|
||||||
onDeactivated,
|
onDeactivated,
|
||||||
nextTick,
|
nextTick,
|
||||||
|
watch,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
useStore,
|
useStore,
|
||||||
@ -200,6 +201,20 @@ const onlineOptions = computed(() => {
|
|||||||
return [];
|
return [];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 筛选离线时,离线数量变为0时,自动清空在线筛选
|
||||||
|
*/
|
||||||
|
watch(() => serverCount.value, () => {
|
||||||
|
if (filterFormData.value.online === '-1' && serverCount.value.offline === 0) {
|
||||||
|
filterFormData.value.online = '';
|
||||||
|
}
|
||||||
|
if (filterFormData.value.online === '1' && serverCount.value.online === 0) {
|
||||||
|
filterFormData.value.online = '';
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
immediate: true,
|
||||||
|
});
|
||||||
|
|
||||||
const listTypeOptions = computed(() => [{
|
const listTypeOptions = computed(() => [{
|
||||||
key: 'card',
|
key: 'card',
|
||||||
label: '卡片',
|
label: '卡片',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user