add default category and default category frontend ui

This commit is contained in:
MaysWind
2020-12-01 01:06:35 +08:00
parent d165eb4d34
commit a6c3f2fe48
8 changed files with 840 additions and 34 deletions
+6
View File
@@ -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: '/'