diff options
author | dartcafe <github@dartcafe.de> | 2019-12-09 01:17:11 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2019-12-09 01:17:11 +0300 |
commit | 1d4a9334c7298416032b2f453e174c35d70217ce (patch) | |
tree | 44feef8a7f7439b8789ed9e5b7260fd4fb816663 /src/js/router.js | |
parent | b26f96c7e932ef9d178cdd6e041cdee11218e354 (diff) |
* some enhancements
Diffstat (limited to 'src/js/router.js')
-rw-r--r-- | src/js/router.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/js/router.js b/src/js/router.js index 5c9690a4..1e6ccebc 100644 --- a/src/js/router.js +++ b/src/js/router.js @@ -38,11 +38,11 @@ export default new Router({ linkActiveClass: 'active', routes: [ { - path: '/:index(index.php/)?apps/polls/', + path: '/:index(index.php/)?apps/polls/:type?', components: { default: List }, - props: false, + props: true, name: 'list' }, { @@ -54,14 +54,6 @@ export default new Router({ name: 'vote' }, { - path: '/:index(index.php/)?apps/polls/edit/:id', - components: { - default: Vote - }, - props: true, - name: 'edit' - }, - { path: '/:index(index.php/)?apps/polls/vote/:id', components: { default: Vote |