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 // whether the response content is detailed
responseDetail: boolean; responseDetail: boolean;
// whether to hide the node status // whether to hide the node status
showNodeStatus: boolean; showNodeStatus?: boolean;
// whether to show the complete quote // whether to show the complete quote
showRawSource: boolean; showRawSource?: boolean;
// response when request // response when request
immediateResponse?: string; immediateResponse?: string;

View File

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

View File

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