|
@@ -95,7 +95,7 @@
|
|
|
<script lang="tsx" setup>
|
|
|
import Draggable from 'vuedraggable'
|
|
|
import { Delete, CircleClose, EditPen, CopyDocument } from '@element-plus/icons-vue'
|
|
|
-import { nextTick, onMounted, ref } from 'vue'
|
|
|
+import { ref, onActivated } from 'vue'
|
|
|
import flowGroup from '@/api/flow/group'
|
|
|
import flowDefinition from '@/api/flow/definition'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
@@ -209,10 +209,9 @@ const updateEv = async (id: any) => {
|
|
|
router.push('/flow_create?id=' + id)
|
|
|
}
|
|
|
|
|
|
-onMounted(() => {
|
|
|
- nextTick(() => {
|
|
|
- flowGroupListAll()
|
|
|
- })
|
|
|
+// keep-alive缓存树,防止创建完流程过后,回到当前窗口未刷新
|
|
|
+onActivated(() => {
|
|
|
+ flowGroupListAll()
|
|
|
})
|
|
|
// 父组件使用的话需要导出
|
|
|
defineExpose({
|