src/components/Dialog/FormDialog.vue
@@ -14,7 +14,7 @@
                     @click="handleConfirm">
            确认
          </el-button>
          <el-button :disabled="loading" @click="handleCancel">取消</el-button>
          <el-button :disabled="loading" @click="handleCancel">{{ cancelButtonText }}</el-button>
        </slot>
      </div>
    </template>
@@ -56,6 +56,9 @@
  // 详情模式不展示“确认”按钮,其它类型正常显示
  const showConfirm = computed(() => props.operationType !== "detail");
  const cancelButtonText = computed(() =>
    props.operationType === "detail" ? "关闭" : "取消"
  );
  const computedTitle = computed(() => {
    if (typeof props.title === "function") {
@@ -83,4 +86,3 @@
    text-align: center;
  }
</style>