Skip to content

Commit f68ae33

Browse files
committed
perf: outlink default value (labring#3134)
1 parent 211061d commit f68ae33

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/global/support/outLink/type.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export type OutLinkSchema<T extends OutlinkAppType = undefined> = {
5252
// whether the response content is detailed
5353
responseDetail: boolean;
5454
// whether to hide the node status
55-
showNodeStatus: boolean;
55+
showNodeStatus?: boolean;
5656
// whether to show the complete quote
57-
showRawSource: boolean;
57+
showRawSource?: boolean;
5858

5959
// response when request
6060
immediateResponse?: string;

packages/service/support/outLink/schema.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ const OutLinkSchema = new Schema({
4848
default: false
4949
},
5050
showNodeStatus: {
51-
type: Boolean,
52-
default: false
51+
type: Boolean
5352
},
5453
showRawSource: {
55-
type: Boolean,
56-
default: false
54+
type: Boolean
5755
},
5856
limit: {
5957
maxUsagePoints: {

projects/app/src/web/core/app/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const defaultApp: AppDetailType = {
2222

2323
export const defaultOutLinkForm: OutLinkEditType = {
2424
name: '',
25+
showNodeStatus: true,
2526
responseDetail: false,
26-
showNodeStatus: false,
2727
showRawSource: false,
2828
limit: {
2929
QPM: 100,

0 commit comments

Comments
 (0)