|
|
@@ -4,6 +4,7 @@
|
|
|
{{currentPath}}
|
|
|
<Breadcrumb />
|
|
|
<h1 @click="goWorkflowDetail">{{activePlatform}}</h1>
|
|
|
+ <h1 @click="goWorkflowAdd">创建工作流</h1>
|
|
|
</div>
|
|
|
<router-view />
|
|
|
</div>
|
|
|
@@ -13,6 +14,7 @@
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
|
+ console.log(router,route)
|
|
|
import { ref, computed } from 'vue'
|
|
|
//获取参数
|
|
|
const query = router.currentRoute.value.query
|
|
|
@@ -23,15 +25,23 @@
|
|
|
return route.matched.length > 1
|
|
|
})
|
|
|
const goWorkflowDetail = () => {
|
|
|
- //增加参数名称
|
|
|
- router.push({
|
|
|
- path: `/search-platform/workflow-detail`,
|
|
|
- query: {
|
|
|
- id:2,
|
|
|
- metaTitle: 'WorkflowDetail'
|
|
|
- }
|
|
|
- })
|
|
|
-};
|
|
|
+ //增加参数名称
|
|
|
+ router.push({
|
|
|
+ path: `/search-platform/workflow-detail`,
|
|
|
+ query: {
|
|
|
+ id:2,
|
|
|
+ metaTitle: 'WorkflowDetail'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ };
|
|
|
+ const goWorkflowAdd = () => {
|
|
|
+ //增加参数名称
|
|
|
+ router.push({
|
|
|
+ path: `/search-platform/workflow-add`,
|
|
|
+ query: {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ };
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|