diff --git a/src/views/sessions/SessionList/OfflineList.vue b/src/views/sessions/SessionList/OfflineList.vue index 0973d800d..4850cb419 100644 --- a/src/views/sessions/SessionList/OfflineList.vue +++ b/src/views/sessions/SessionList/OfflineList.vue @@ -20,9 +20,9 @@ export default { can: (row, cellValue) => { return row.can_replay }, - callback: function({ cellValue, tableData }) { + callback: function({ row, tableData }) { // 跳转到luna页面 - const replayUrl = '/luna/replay/' + cellValue + const replayUrl = '/luna/replay/' + row.id window.open(replayUrl) } }, @@ -33,9 +33,9 @@ export default { can: (row, cellValue) => { return row.can_replay }, - callback: function({ cellValue, tableData }) { + callback: function({ row, tableData }) { // 跳转下载页面 - const downloadUrl = `/api/v1/terminal/sessions/${cellValue}/replay/download/` + const downloadUrl = `/api/v1/terminal/sessions/${row.id}/replay/download/` const a = document.createElement('a') a.href = downloadUrl diff --git a/src/views/xpack/Cloud/Account/AccountList.vue b/src/views/xpack/Cloud/Account/AccountList.vue index 3e284a01e..e4ddd02b8 100644 --- a/src/views/xpack/Cloud/Account/AccountList.vue +++ b/src/views/xpack/Cloud/Account/AccountList.vue @@ -129,6 +129,7 @@ export default { return () => { this.$router.push({ name: 'AccountCreate', query: { provider: provider }}) } } } + }