feat:增加跳转按钮

This commit is contained in:
jiangrui
2025-03-11 21:57:45 +08:00
parent e6171fb34c
commit dca0f1f0c1
8 changed files with 89 additions and 12 deletions

View File

@@ -78,7 +78,8 @@
</el-table-column>
<el-table-column label="操作" width="180">
<template #default="{ row }">
<el-button @click="handleSave(row)">转</el-button>
<el-button type="primary" plain @click="handleJump(row)">转</el-button>
<el-button v-if="row.isSupportSave" @click="handleSave(row)">转存</el-button>
</template>
</el-table-column>
</el-table>
@@ -118,8 +119,7 @@ import { useUserSettingStore } from "@/stores/userSetting";
const userStore = useUserSettingStore();
const store = useResourceStore();
const emit = defineEmits(["save", "loadMore", "searchMovieforTag"]);
const emit = defineEmits(["save", "loadMore", "searchMovieforTag", "jump"]);
const location = computed(() => window.location);
@@ -127,6 +127,10 @@ const handleSave = (resource: Resource) => {
emit("save", resource);
};
const handleJump = (resource: Resource) => {
emit("jump", resource);
};
// 添加加载更多处理函数
const handleLoadMore = (channelId: string) => {
emit("loadMore", channelId);