mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
fixed: Fixed platform error when cloning assets
This commit is contained in:
@@ -101,8 +101,15 @@ export const assetFieldsMeta = (vm) => {
|
|||||||
const pk = event.pk
|
const pk = event.pk
|
||||||
const url = window.location.href
|
const url = window.location.href
|
||||||
const newURL = url.replace(/platform=[^&]*/, 'platform=' + pk)
|
const newURL = url.replace(/platform=[^&]*/, 'platform=' + pk)
|
||||||
window.location.href = newURL
|
|
||||||
updatePlatformProtocols(vm, platformType, updateForm, true)
|
if (url.includes('clone')) {
|
||||||
|
updatePlatformProtocols(vm, platformType, updateForm, true)
|
||||||
|
} else {
|
||||||
|
window.history.replaceState(null, null, newURL)
|
||||||
|
vm.$nextTick(() => {
|
||||||
|
updatePlatformProtocols(vm, platformType, updateForm, true)
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
input: ([event], updateForm) => {
|
input: ([event], updateForm) => {
|
||||||
updatePlatformProtocols(vm, platformType, updateForm)
|
updatePlatformProtocols(vm, platformType, updateForm)
|
||||||
|
@@ -94,7 +94,8 @@ export default {
|
|||||||
return getPageData({ keyword, pageIndex, pageSize })
|
return getPageData({ keyword, pageIndex, pageSize })
|
||||||
},
|
},
|
||||||
selectedData: [],
|
selectedData: [],
|
||||||
showClearBtn: true
|
showClearBtn: true,
|
||||||
|
transferOnCheck: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user