fix: 跳转到 luna 组织不对

This commit is contained in:
feng
2024-02-26 16:24:50 +08:00
parent 9d999a7119
commit 8fa31fe0c2
2 changed files with 5 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ export default {
name: 'WebTerminal',
computed: {
webTerminalUrl() {
let url = `${BASE_URL}/luna/?_=${Date.now()}`
const oid = this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : ''
let url = `${BASE_URL}/luna/?_=${Date.now()}${oid ? `&oid=${oid}` : ''}`
if (process.env.NODE_ENV !== 'production') {
url = url.replace('9528', '4200')
}

View File

@@ -138,7 +138,9 @@ export default {
type: 'primary',
can: ({ row }) => row.is_active,
callback: ({ row }) => {
window.open(`/luna/?login_to=${row.id}`, '_blank')
const oid = this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : ''
const url = `/luna/?login_to=${row.id}${oid ? `&oid=${oid}` : ''}`
window.open(url, '_blank')
}
},
{