mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 16:10:59 +08:00
fix: 创建网站未保存备注
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user