Skip to content

Commit

Permalink
Fix: shared filed position
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Dec 18, 2023
1 parent 7659bbb commit 21ea9d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ declare module 'vue' {
EditVendor: typeof import('./src/components/admin/dialogs/editVendor.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
Expand All @@ -29,6 +31,7 @@ declare module 'vue' {
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
Expand Down
5 changes: 3 additions & 2 deletions src/components/cinema/MoviePush.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ const selectPushType = () => {
headers: {},
vendorInfo: {
vendor: "bilibili",
shared: true,
bilibili: {}
bilibili: {
shared: false
}
}
};
break;
Expand Down
4 changes: 2 additions & 2 deletions src/components/cinema/dialogs/bilibiliParse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ const submit = async () => {
proxy: item.proxy,
vendorInfo: {
vendor: "bilibili",
shared: item.shared,
bilibili: {
bvid: item.bvid,
cid: item.cid,
epid: item.epid
epid: item.epid,
shared: item.shared
},
backend: Props.vendor
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/Movie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export interface BaseMovieInfo {

export interface VendorInfo {
vendor: string;
shared: boolean;
bilibili?: BilibiliVendorInfo;
backend?: string;
}
Expand All @@ -37,6 +36,7 @@ export interface BilibiliVendorInfo {
cid?: number;
epid?: number;
quality?: number;
shared: boolean;
}

export interface EditMovieInfo extends BaseMovieInfo {
Expand Down

0 comments on commit 21ea9d8

Please sign in to comment.