mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +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 url = window.location.href
|
||||
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) => {
|
||||
updatePlatformProtocols(vm, platformType, updateForm)
|
||||
|
@@ -94,7 +94,8 @@ export default {
|
||||
return getPageData({ keyword, pageIndex, pageSize })
|
||||
},
|
||||
selectedData: [],
|
||||
showClearBtn: true
|
||||
showClearBtn: true,
|
||||
transferOnCheck: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user