2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

fix: 创建网站未保存备注

This commit is contained in:
耗子
2024-11-12 19:24:44 +08:00
parent 9f7d8e413e
commit 5183653dbb
3 changed files with 4 additions and 2 deletions

View File

@@ -286,6 +286,7 @@ func (r *websiteRepo) Create(req *request.WebsiteCreate) (*biz.Website, error) {
Status: true,
Path: req.Path,
Https: false,
Remark: req.Remark,
}
if err = app.Orm.Create(w).Error; err != nil {
return nil, err

View File

@@ -18,6 +18,7 @@ type WebsiteCreate struct {
DBName string `form:"db_name" json:"db_name"`
DBUser string `form:"db_user" json:"db_user"`
DBPassword string `form:"db_password" json:"db_password" validate:"password"`
Remark string `form:"remark" json:"remark"`
}
type WebsiteDelete struct {

View File

@@ -183,15 +183,15 @@ const buttonLoading = ref(false)
const buttonDisabled = ref(false)
const createModel = ref({
name: '',
domains: [] as Array<string>,
listens: [] as Array<string>,
domains: [] as Array<string>,
path: '',
php: 0,
db: false,
db_type: '0',
db_name: '',
db_user: '',
db_password: '',
path: '',
remark: ''
})
const deleteModel = ref({