mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
add default category and default category frontend ui
This commit is contained in:
@@ -25,6 +25,7 @@ import SessionListPage from "../views/mobile/users/SessionList.vue";
|
||||
import CategoryAllPage from "../views/mobile/categories/CategoryAll.vue";
|
||||
import CategoryListPage from "../views/mobile/categories/CategoryList.vue";
|
||||
import CategoryEditPage from "../views/mobile/categories/CategoryEdit.vue";
|
||||
import CategoryDefaultPage from "../views/mobile/categories/CategoryDefault.vue";
|
||||
|
||||
function checkLogin(to, from, resolve, reject) {
|
||||
const router = this;
|
||||
@@ -204,6 +205,11 @@ const routes = [
|
||||
component: CategoryEditPage,
|
||||
beforeEnter: checkLogin
|
||||
},
|
||||
{
|
||||
path: '/category/default',
|
||||
component: CategoryDefaultPage,
|
||||
beforeEnter: checkLogin
|
||||
},
|
||||
{
|
||||
path: '(.*)',
|
||||
redirect: '/'
|
||||
|
||||
Reference in New Issue
Block a user