Skip to content

Commit

Permalink
byzer-org#81 byzer-org#89 fix click event and viewer larger image
Browse files Browse the repository at this point in the history
  • Loading branch information
githubnameting committed Feb 14, 2022
1 parent 719dabd commit 9cda118
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 7 additions & 3 deletions src/components/Header/GlobalHelp.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

<template>
<div class="global-help">
<el-dropdown>
<el-dropdown @command="handleCommand">
<i class="el-ksd-icon-help_22 drop-icon"></i>
<el-dropdown-menu slot="dropdown" class="global-help-drop">
<el-dropdown-item command=""><a href="https://github.com/byzer-org" target="_blank">{{$t('menu.give_feedback')}}</a></el-dropdown-item>
<el-dropdown-item command=""><a href="https://docs.byzer.org/#/byzer-notebook/zh-cn/" target="_blank">{{$t('menu.Kolo_docs')}}</a></el-dropdown-item>
<el-dropdown-item command="https://github.com/byzer-org">{{$t('menu.give_feedback')}}</el-dropdown-item>
<el-dropdown-item command="https://docs.byzer.org/#/byzer-notebook/zh-cn/">{{$t('menu.Kolo_docs')}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
Expand All @@ -23,6 +23,10 @@ import { mapState } from 'vuex'
}
})
export default class GlobalHelp extends Vue {
handleCommand (command) {
window.open(command)
}
}
</script>
<style lang="scss">
Expand Down
3 changes: 1 addition & 2 deletions src/page/IframeImage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export default class IframePage extends Vue {
detailContent = ''
created () {
this.$router.push({name: 'result', params: window.opener.filter})
this.getStatus(window.opener.filter.id)
this.getStatus(this.$route.params.id)
}
async getStatus (id) {
Expand Down
5 changes: 1 addition & 4 deletions src/page/Workspace/Notebook/ExcuteResult/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@ export default class ExcuteResult extends Vue {
}
drawPng () {
const location = this.$router.resolve({ name: 'result' })
window.filter = {
id: this.result.job_id
}
const location = this.$router.resolve({ name: 'result', params: { id: this.result.job_id }})
window.open(location.href)
}
formatterValue (row, column, cellValue) {
Expand Down

0 comments on commit 9cda118

Please sign in to comment.