add category edit ui

This commit is contained in:
MaysWind
2020-11-30 01:10:36 +08:00
parent 255c9bb65f
commit 4c53cd63cb
13 changed files with 962 additions and 7 deletions
+25
View File
@@ -17,10 +17,15 @@ import SettingsPage from '../views/mobile/Settings.vue';
import ApplicationLockPage from '../views/mobile/ApplicationLock.vue';
import ExchangeRatesPage from "../views/mobile/ExchangeRates.vue";
import AboutPage from "../views/mobile/About.vue";
import UserProfilePage from "../views/mobile/users/UserProfile.vue";
import TwoFactorAuthPage from "../views/mobile/users/TwoFactorAuth.vue";
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";
function checkLogin(to, from, resolve, reject) {
const router = this;
@@ -179,6 +184,26 @@ const routes = [
component: SessionListPage,
beforeEnter: checkLogin
},
{
path: '/category/all',
component: CategoryAllPage,
beforeEnter: checkLogin
},
{
path: '/category/list',
component: CategoryListPage,
beforeEnter: checkLogin
},
{
path: '/category/add',
component: CategoryEditPage,
beforeEnter: checkLogin
},
{
path: '/category/edit',
component: CategoryEditPage,
beforeEnter: checkLogin
},
{
path: '(.*)',
redirect: '/'