修正对外主机名错误
Suan API 返回的图片链接中使用的主机名现在可以进行设置。
This commit is contained in:
@@ -67,6 +67,12 @@ function varTag(code: string, description: string) {
|
||||
show-switch
|
||||
title="热重载 Python 代码文件"
|
||||
/>
|
||||
<setting-card
|
||||
v-model:string-value="CONFIG.data.system.public_host"
|
||||
message="Suan API 需要对外提供资源(例如课表图片)时,使用此主机名"
|
||||
show-input
|
||||
title="外部域名 / 主机名"
|
||||
/>
|
||||
</n-flex>
|
||||
</n-collapse-item>
|
||||
<n-collapse-item name="schedule" title="课表设置">
|
||||
|
||||
@@ -2,6 +2,7 @@ export interface ConfigSystemDto {
|
||||
host?: string
|
||||
port?: number
|
||||
reload?: boolean
|
||||
public_host?: string
|
||||
}
|
||||
|
||||
export interface ConfigScheduleDto {
|
||||
|
||||
Reference in New Issue
Block a user