feat: 允许http下载&添加了多个镜像源
- 在 AutoMode 组件中添加了多个 gh-proxy 镜像选项 - 在 BackendStep 组件中增加了新的镜像选择项 - 修改了 downloadService 中的下载逻辑,支持 http 和 https - 更新了 gitService 和 pythonService 中的下载 URL - 在 Home 组件中添加了动态问候语
This commit is contained in:
@@ -90,23 +90,23 @@ const router = createRouter({
|
||||
})
|
||||
|
||||
|
||||
// // 添加路由守卫,确保在生产环境中也能正确进入初始化页面
|
||||
// router.beforeEach(async (to, from, next) => {
|
||||
// console.log('路由守卫:', { to: to.path, from: from.path })
|
||||
//
|
||||
// // 如果访问的不是初始化页面,且没有初始化标记,则重定向到初始化页面
|
||||
// if (to.path !== '/initialization') {
|
||||
// const initialized = await isAppInitialized()
|
||||
// console.log('检查初始化状态:', initialized)
|
||||
//
|
||||
// if (!initialized) {
|
||||
// console.log('应用未初始化,重定向到初始化页面')
|
||||
// next('/initialization')
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// next()
|
||||
// })
|
||||
// 添加路由守卫,确保在生产环境中也能正确进入初始化页面
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
console.log('路由守卫:', { to: to.path, from: from.path })
|
||||
|
||||
// 如果访问的不是初始化页面,且没有初始化标记,则重定向到初始化页面
|
||||
if (to.path !== '/initialization') {
|
||||
const initialized = await isAppInitialized()
|
||||
console.log('检查初始化状态:', initialized)
|
||||
|
||||
if (!initialized) {
|
||||
console.log('应用未初始化,重定向到初始化页面')
|
||||
next('/initialization')
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
next()
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user