diff --git a/src/views/assets/const.js b/src/views/assets/const.js index fb993462c..97ed8665b 100644 --- a/src/views/assets/const.js +++ b/src/views/assets/const.js @@ -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) diff --git a/src/views/labels/BindDialog.vue b/src/views/labels/BindDialog.vue index 36afc18cb..de62379c9 100644 --- a/src/views/labels/BindDialog.vue +++ b/src/views/labels/BindDialog.vue @@ -94,7 +94,8 @@ export default { return getPageData({ keyword, pageIndex, pageSize }) }, selectedData: [], - showClearBtn: true + showClearBtn: true, + transferOnCheck: true } } },