mirror of
https://github.com/acepanel/panel.git
synced 2026-02-06 01:27:18 +08:00
fix: 使用短期证书配置
This commit is contained in:
@@ -29,12 +29,14 @@ export function createAppInstallGuard(router: Router) {
|
||||
|
||||
// 网站
|
||||
if (to.path.startsWith('/website')) {
|
||||
await useRequest(app.isInstalled('nginx')).onSuccess(({ data }) => {
|
||||
if (!data) {
|
||||
showErrorMessage(`Web 服务器未安装`)
|
||||
return router.push({ name: 'app-index' })
|
||||
await useRequest(app.isInstalled('nginx,openresty,apache,openlitespeed,caddy')).onSuccess(
|
||||
({ data }) => {
|
||||
if (!data) {
|
||||
showErrorMessage(`Web 服务器未安装`)
|
||||
return router.push({ name: 'app-index' })
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
// 容器
|
||||
|
||||
Reference in New Issue
Block a user