Kaynağa Gözat

feat: 优化动态表单字段Id唯一值校验

luoyali 1 yıl önce
ebeveyn
işleme
8ca8db3e8b
1 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 6 5
      src/views/flow/create/index.vue

+ 6 - 5
src/views/flow/create/index.vue

@@ -138,11 +138,6 @@ const activeComponent = item => {
 	activeName.value = item.label
 }
 
-const currentComponent = computed(() => {
-	return componentsArr.find(item => item.label === activeName.value)?.component
-})
-
-const queryObj = computed(() => route.query)
 const getCurrentProcessDetailEv = () => {
 	let _id = queryObj.value.id
 	if (_id) {
@@ -162,6 +157,12 @@ const getCurrentProcessDetailEv = () => {
 }
 
 getCurrentProcessDetailEv()
+
+const currentComponent = computed(() => {
+	return componentsArr.find(item => item.label === activeName.value)?.component
+})
+
+const queryObj = computed(() => route.query)
 </script>
 
 <style scoped lang="scss">