forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (42 loc) · 1.07 KB
/
Copy pathindex.js
File metadata and controls
45 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import Vue from 'vue';
import ImportManagerView from './components/ImportManagerView';
import ProcessDetailConfigs from './components/ProcessDetailConfigs';
import State from '../export/state';
import CustomExportView from "../export/components/CustomExportView";
const routes = [
{
path: '/processes/import',
name: 'main',
component: ImportManagerView
},
{
path: '/processes/import/custom',
name: 'custom',
component: CustomExportView,
},
{
path: '/processes/import/new-process',
name: 'import-new-process',
component: ProcessDetailConfigs,
},
];
new Vue({
mixins: [State],
router: window.ProcessMaker.Router,
components: { },
data() {
return {
}
},
beforeMount() {
this.$root.isImport = true;
this.$router.addRoutes(routes);
},
watch: {
'$route': {
handler() {
// TODO: Add handlers route changes such as breadcrumb updates etc..
}
}
}
}).$mount('#import-manager');