feat(api): 更新OpenAPI生成代码并优化接口参数处理

- 添加eslint-disable注释以忽略代码检查
- 简化DefaultApiAxiosParamCreator函数结构
- 优化接口参数序列化逻辑
- 统一请求配置处理方式
- 移除不必要的空行和注释块
- 更新接口方法签名以支持更灵活的选项配置
- 精简导入语句格式
This commit is contained in:
danial
2025-10-13 21:59:16 +08:00
parent f9c80df41f
commit e8a12ba5ce

View File

@@ -34,23 +34,6 @@
<a-tag v-else-if="orderData.status === 4" color="red">已过期</a-tag>
<a-tag v-else color="gray">未知</a-tag>
</a-descriptions-item>
<a-descriptions-item label="支付链接">
<a-space v-if="orderData.wxPayUrl">
<a-link :href="orderData.wxPayUrl" target="_blank" type="primary">
<template #icon>
<icon-link />
</template>
打开支付链接
</a-link>
<a-button size="mini" @click="copyPaymentUrl">
<template #icon>
<icon-copy />
</template>
复制链接
</a-button>
</a-space>
<a-typography-text v-else type="secondary"></a-typography-text>
</a-descriptions-item>
<a-descriptions-item label="最后请求时间">
{{ orderData.lastRequestAt || '-' }}
</a-descriptions-item>
@@ -114,18 +97,6 @@ const emit = defineEmits<Emits>();
const handleCancel = (): void => {
emit('update:visible', false);
};
// 复制支付链接
const copyPaymentUrl = async (): Promise<void> => {
if (props.orderData?.wxPayUrl) {
try {
await navigator.clipboard.writeText(props.orderData.wxPayUrl);
Message.success('支付链接已复制到剪贴板');
} catch (error) {
Message.error('复制失败,请手动复制');
}
}
};
</script>
<style scoped>