diff --git a/src/components/deskModule/SystemMonitor/Edit/DiskEditor/index.vue b/src/components/deskModule/SystemMonitor/Edit/DiskEditor/index.vue
index 78dafea..3d9bd81 100644
--- a/src/components/deskModule/SystemMonitor/Edit/DiskEditor/index.vue
+++ b/src/components/deskModule/SystemMonitor/Edit/DiskEditor/index.vue
@@ -1,5 +1,6 @@
@@ -102,8 +132,8 @@ onMounted(() => {
-
-
+
+
diff --git a/src/components/deskModule/SystemMonitor/Edit/index.vue b/src/components/deskModule/SystemMonitor/Edit/index.vue
index 6cf2bd4..2012996 100644
--- a/src/components/deskModule/SystemMonitor/Edit/index.vue
+++ b/src/components/deskModule/SystemMonitor/Edit/index.vue
@@ -17,6 +17,7 @@ interface Props {
const props = defineProps()
const emit = defineEmits()
+const DiskEditorRef = ref>()
// 默认通用的进度扩展参数
const defaultGenericProgressStyleExtendParam: GenericProgressStyleExtendParam = {
@@ -78,14 +79,21 @@ function handleResetExtendParam() {
// 保存提交
async function handleSubmit() {
+ let verificationRes = true
currentMonitorData.value.monitorType = active.value as MonitorType
- if (currentMonitorData.value.monitorType === MonitorType.cpu || currentMonitorData.value.monitorType === MonitorType.memory)
+ if (currentMonitorData.value.monitorType === MonitorType.cpu || currentMonitorData.value.monitorType === MonitorType.memory) {
currentMonitorData.value.extendParam = currentGenericProgressStyleExtendParam
-
- else if (currentMonitorData.value.monitorType === MonitorType.disk)
+ }
+ else if (currentMonitorData.value.monitorType === MonitorType.disk) {
currentMonitorData.value.extendParam = currentDiskExtendParam
+ const res = await DiskEditorRef.value?.verification()
+ if (res !== undefined)
+ verificationRes = res
+ }
// console.log('保存', currentMonitorData.value.extendParam)
+ if (!verificationRes)
+ return
if (props.index !== null) {
const res = await saveByIndex(props.index, currentMonitorData.value)
@@ -125,7 +133,7 @@ async function handleSubmit() {
-
+