This commit is contained in:
六如
2024-11-29 23:47:58 +08:00
parent 85b33e7c3d
commit 09330a7431
198 changed files with 1504 additions and 982 deletions

View File

@@ -45,9 +45,13 @@ export const showSandBoxUrl = computed(() => {
return docDetail.value.docInfoConfig?.openSandboxUrl?.length > 0;
});
export const showDoc = computed(() => {
return docDetail.value?.docInfoView?.url?.length > 0;
});
/*
参数 类型 是否必填 最大长度 描述 示例值
app_id String 是 32 支付宝分配给开发者的应用ID 2014072300007148
app_id String 是 32 平台分配给开发者的应用ID 2014072300007148
method String 是 128 接口名称 alipay.trade.fastpay.refund.query
format String 否 40 仅支持JSON JSON
charset String 是 10 请求使用的编码格式如utf-8,gbk,gb2312等 utf-8

View File

@@ -13,7 +13,8 @@ import {
handleNodeClick,
showUrl,
showProdUrl,
showSandBoxUrl
showSandBoxUrl,
showDoc
} from "./index";
import { ApiParamTable } from "@/components/ApiParamTable";
import MavonEditor from "mavon-editor";
@@ -39,7 +40,7 @@ const defaultProps = {
:value="item.id"
/>
</el-select>
<div style="margin-top: 10px">
<div v-show="docAppId > 0" style="margin-top: 10px">
<el-link type="primary" href="" target="_blank">签名算法</el-link>
</div>
<el-tree
@@ -49,10 +50,7 @@ const defaultProps = {
@node-click="handleNodeClick"
/>
</el-aside>
<el-main
v-show="docDetail?.docInfoView?.url?.length > 0"
style="padding-top: 0"
>
<el-main v-show="showDoc" style="padding-top: 0">
<div v-show="contentShow">
<MavonEditor
v-model="content"