mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
fix: 跳转到 luna 组织不对
This commit is contained in:
@@ -11,7 +11,8 @@ export default {
|
|||||||
name: 'WebTerminal',
|
name: 'WebTerminal',
|
||||||
computed: {
|
computed: {
|
||||||
webTerminalUrl() {
|
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') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
url = url.replace('9528', '4200')
|
url = url.replace('9528', '4200')
|
||||||
}
|
}
|
||||||
|
@@ -138,7 +138,9 @@ export default {
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
can: ({ row }) => row.is_active,
|
can: ({ row }) => row.is_active,
|
||||||
callback: ({ row }) => {
|
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')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user