- 新增 WindowsCredential 模型和控制器,用于管理 Windows 凭据 - 新增 RemoteAccessToken 模型,支持生成可分享的远程访问链接 - 更新 RemoteDesktopController,添加 Token 生成、验证、撤销等 API - 更新前端 RemoteDesktopModal,支持4种连接方式:快速连接、生成分享链接、手动输入、链接管理 - 新增 WindowsCredentialManager 组件用于管理 Windows 凭据 - 新增 RemoteAccessPage 用于通过 Token 访问远程桌面 - 添加 Vue Router 支持 /remote/:token 路由 - 更新数据库迁移,添加 WindowsCredentials 和 RemoteAccessTokens 表
24 lines
459 B
JavaScript
24 lines
459 B
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import MainLayout from '../components/MainLayout.vue'
|
|
import RemoteAccessPage from '../components/RemoteAccessPage.vue'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: MainLayout
|
|
},
|
|
{
|
|
path: '/remote/:token',
|
|
name: 'RemoteAccess',
|
|
component: RemoteAccessPage
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes
|
|
})
|
|
|
|
export default router
|