Skip to content

Commit 033b753

Browse files
author
Taois
committed
feat:修复extend属性传递问题
1 parent 5496976 commit 033b753

File tree

10 files changed

+12
-11
lines changed

10 files changed

+12
-11
lines changed

dashboard/src/components/VideoGrid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const props = defineProps({
105105
default: ''
106106
},
107107
extend: {
108-
type: Object,
108+
type: [Object, String],
109109
default: () => ({})
110110
},
111111
apiUrl: {

dashboard/src/components/VideoList.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const props = defineProps({
153153
default: ''
154154
},
155155
extend: {
156-
type: Object,
156+
type: [Object, String],
157157
default: () => ({})
158158
},
159159
apiUrl: {
@@ -680,7 +680,8 @@ const handleFolderNavigateFromGrid = async (video) => {
680680
};
681681
682682
emit('folder-navigate', loadingState);
683-
683+
console.log('props.extend:',props.extend)
684+
console.log('processExtendParam(props.extend):',processExtendParam(props.extend))
684685
// 调用T4分类接口
685686
const response = await getCategoryData(props.module, {
686687
t: video.vod_id, // 使用vod_id作为type_id

dashboard/src/components/actions/ActionDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
default: ''
118118
},
119119
extend: {
120-
type: Object,
120+
type: [Object, String],
121121
default: () => ({})
122122
},
123123
apiUrl: {

dashboard/src/components/actions/ActionRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default {
110110
},
111111
// 扩展参数,用于T4接口调用
112112
extend: {
113-
type: Object,
113+
type: [Object, String],
114114
default: () => ({})
115115
},
116116
// API URL,用于直接调用站点API

dashboard/src/components/actions/HelpAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export default {
390390
default: ''
391391
},
392392
extend: {
393-
type: Object,
393+
type: [Object, String],
394394
default: () => ({})
395395
},
396396
apiUrl: {

dashboard/src/components/actions/InputAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export default {
285285
default: ''
286286
},
287287
extend: {
288-
type: Object,
288+
type: [Object, String],
289289
default: () => ({})
290290
},
291291
apiUrl: {

dashboard/src/components/actions/MenuAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default {
284284
default: ''
285285
},
286286
extend: {
287-
type: Object,
287+
type: [Object, String],
288288
default: () => ({})
289289
},
290290
apiUrl: {

dashboard/src/components/actions/MsgBoxAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default {
233233
default: ''
234234
},
235235
extend: {
236-
type: Object,
236+
type: [Object, String],
237237
default: () => ({})
238238
},
239239
apiUrl: {

dashboard/src/components/actions/MultiInputAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default {
325325
default: ''
326326
},
327327
extend: {
328-
type: Object,
328+
type: [Object, String],
329329
default: () => ({})
330330
},
331331
apiUrl: {

dashboard/src/components/actions/WebViewAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default {
238238
default: ''
239239
},
240240
extend: {
241-
type: Object,
241+
type: [Object, String],
242242
default: () => ({})
243243
},
244244
apiUrl: {

0 commit comments

Comments
 (0)