fix: Web资产克隆,选择器信息丢失

This commit is contained in:
wangruidong 2024-04-08 17:16:33 +08:00 committed by Bryan
parent c28419438b
commit 1b0adbfe71

View File

@ -28,7 +28,7 @@ export const filterSelectValues = (values) => {
function updatePlatformProtocols(vm, platformType, updateForm, isPlatformChanged = false) {
setTimeout(() => vm.init().then(() => {
const isCreate = vm?.$route?.meta.action === 'create'
const isCreate = vm?.$route?.meta.action === 'create' && vm?.$route?.query.clone_from === undefined
if (platformType === 'website') {
const need_modify = isCreate || isPlatformChanged
if (!need_modify) return