perf: outlink default value (#3134)

This commit is contained in:
Archer 2024-11-12 18:28:57 +08:00 committed by archer
parent 211061d122
commit f68ae33cd8
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E
3 changed files with 5 additions and 7 deletions

View File

@ -52,9 +52,9 @@ export type OutLinkSchema<T extends OutlinkAppType = undefined> = {
// whether the response content is detailed
responseDetail: boolean;
// whether to hide the node status
showNodeStatus: boolean;
showNodeStatus?: boolean;
// whether to show the complete quote
showRawSource: boolean;
showRawSource?: boolean;
// response when request
immediateResponse?: string;

View File

@ -48,12 +48,10 @@ const OutLinkSchema = new Schema({
default: false
},
showNodeStatus: {
type: Boolean,
default: false
type: Boolean
},
showRawSource: {
type: Boolean,
default: false
type: Boolean
},
limit: {
maxUsagePoints: {

View File

@ -22,8 +22,8 @@ export const defaultApp: AppDetailType = {
export const defaultOutLinkForm: OutLinkEditType = {
name: '',
showNodeStatus: true,
responseDetail: false,
showNodeStatus: false,
showRawSource: false,
limit: {
QPM: 100,