fix(app): layout height

This commit is contained in:
0xJacky 2023-11-26 18:21:17 +08:00
parent 91817a3a32
commit c1193a5b8c
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
2 changed files with 68 additions and 70 deletions

View file

@ -41,11 +41,12 @@ const lang = computed(() => {
const settings = useSettingsStore()
const is_theme_dark = computed(() => settings.theme == 'dark')
</script>
<template>
<a-config-provider :theme="{
algorithm: is_theme_dark?theme.darkAlgorithm:theme.defaultAlgorithm,
}" :locale="lang" :autoInsertSpaceInButton="false">
<a-layout style="min-height: 100%;">
<a-layout style="min-height: 100vh">
<div class="drawer-sidebar">
<a-drawer
:closable="false"

View file

@ -8,11 +8,8 @@ import (
"regexp"
)
func execShell(cmdArgs ...string) (out string) {
cmd := []string{"-c"}
cmd = append(cmd, cmdArgs...)
bytes, err := exec.Command("/bin/sh", cmd...).CombinedOutput()
func execShell(cmd string) (out string) {
bytes, err := exec.Command("/bin/sh -c", cmd).CombinedOutput()
out = string(bytes)
if err != nil {
out += " " + err.Error()
@ -27,7 +24,7 @@ func TestConf() (out string) {
return
}
out = execShell("nginx", "-t")
out = execShell("nginx -t")
return
}
@ -38,7 +35,7 @@ func Reload() (out string) {
return
}
out = execShell("nginx", "-s", "reload")
out = execShell("nginx -s reload")
return
}
@ -50,7 +47,7 @@ func Restart() (out string) {
return
}
out = execShell("nginx", "-s", "reopen")
out = execShell("nginx -s reopen")
return
}