mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 16:43:55 +08:00
* 获得获取所有模型名称等功能 (#343) * 优化登录 token 校验 (#330) * fix manager-api bug * 优化登录注册流程,跑通注册登录、接口 * update package * 优化登录 token 校验: 1、后端新增 /api/v1/user/info 接口,优化 Oauth2Filter.getRequestToken 逻辑; 2、前端 /api/v1/user/login 登录成功后,保存 token 至浏览器本地; 3、前端请求添加本地 token。 --------- Co-authored-by: 欣南科技 <huangrongzhuang@xin-nan.com> * update:分离home页面的组件 --------- Co-authored-by: CGD <3030332422@qq.com> Co-authored-by: zhisheng <pzs034@gmail.com> Co-authored-by: hrz <1710360675@qq.com>
49 lines
808 B
JavaScript
49 lines
808 B
JavaScript
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'welcome',
|
|
component: function () {
|
|
return import('../views/login.vue')
|
|
}
|
|
},
|
|
{
|
|
path: '/role-config',
|
|
name: 'RoleConfig',
|
|
component: function () {
|
|
return import('../views/roleConfig.vue')
|
|
}
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: function () {
|
|
return import('../views/login.vue')
|
|
}
|
|
},
|
|
{
|
|
path: '/home',
|
|
name: 'home',
|
|
component: function () {
|
|
return import('../views/home.vue')
|
|
}
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'Register',
|
|
component: function () {
|
|
return import('../views/register.vue')
|
|
}
|
|
},
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
routes
|
|
})
|
|
|
|
export default router
|