support update user profile

This commit is contained in:
MaysWind
2020-10-28 00:58:54 +08:00
parent b853a21de8
commit 3d2cc7ff95
7 changed files with 176 additions and 1 deletions
+6
View File
@@ -6,6 +6,7 @@ import MainPageHomeTab from '../views/mobile/main/Home.vue';
import LoginPage from '../views/mobile/Login.vue';
import SignUpPage from '../views/mobile/Signup.vue';
import SettingsPage from '../views/mobile/Settings.vue';
import UserProfilePage from "../views/mobile/users/UserProfile.vue";
function checkLogin(to, from, resolve, reject) {
const router = this;
@@ -60,6 +61,11 @@ const routes = [
component: SettingsPage,
beforeEnter: checkLogin
},
{
path: '/user/profile',
component: UserProfilePage,
beforeEnter: checkLogin
},
{
path: '(.*)',
redirect: '/'