Playwright headless 设置

在 Suan API 设置中添加控制 playwright headless 模式的设置。
This commit is contained in:
2026-04-21 17:53:20 +08:00
parent 16bd8e9f9a
commit 06d4b605b1
4 changed files with 11 additions and 1 deletions

View File

@@ -71,6 +71,12 @@ function varTag(code: string, description: string) {
</n-collapse-item>
<n-collapse-item name="schedule" title="课表设置">
<n-flex vertical>
<setting-card
v-model:boolean-value="CONFIG.data.schedule.playwright_headless"
message="在生产环境中应当为 True请参阅文档。"
show-switch
title="Playwright Headless 模式"
/>
<setting-card
v-model:selection-value="CONFIG.data.schedule.jwxt_login_method"
:selection-options="JwxtLoginMethodOptions"

View File

@@ -5,6 +5,7 @@ export interface ConfigSystemDto {
}
export interface ConfigScheduleDto {
playwright_headless?: true
jwxt_login_method?: 'jwxt' | 'sso'
semester_start_date?: string
schedule_title_template?: string