Browse Source

错误修复

hubin 1 year ago
parent
commit
455704c3a5
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/flow/create/index.vue

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

@@ -138,6 +138,12 @@ 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) {
@@ -157,12 +163,6 @@ 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">