mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
style: 删除debug调试代码
This commit is contained in:
parent
aa26b13fad
commit
f6feac6106
@ -39,7 +39,7 @@ func (a AppRepo) Page(page, size int, opts ...DBOption) (int64, []model.App, err
|
|||||||
db := getDb(opts...).Model(&model.App{})
|
db := getDb(opts...).Model(&model.App{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Preload("AppTags").Find(&apps).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Preload("AppTags").Find(&apps).Error
|
||||||
return count, apps, err
|
return count, apps, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ func (a *AppInstallRepo) Page(page, size int, opts ...DBOption) (int64, []model.
|
|||||||
db := getDb(opts...).Model(&model.AppInstall{})
|
db := getDb(opts...).Model(&model.AppInstall{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Preload("App").Preload("Backups").Find(&apps).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Preload("App").Preload("Backups").Find(&apps).Error
|
||||||
return count, apps, err
|
return count, apps, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ func (a *AppInstallRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOp
|
|||||||
if len(opts) == 0 {
|
if len(opts) == 0 {
|
||||||
db = db.Where("1=1")
|
db = db.Where("1=1")
|
||||||
}
|
}
|
||||||
return db.Debug().Updates(&maps).Error
|
return db.Updates(&maps).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
type RootInfo struct {
|
type RootInfo struct {
|
||||||
|
@ -42,7 +42,7 @@ func (u *BackupRepo) ListRecord(opts ...DBOption) ([]model.BackupRecord, error)
|
|||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
db = opt(db)
|
db = opt(db)
|
||||||
}
|
}
|
||||||
err := db.Debug().Find(&users).Error
|
err := db.Find(&users).Error
|
||||||
return users, err
|
return users, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ func (w *WebsiteRepo) Page(page, size int, opts ...DBOption) (int64, []model.Web
|
|||||||
db := getDb(opts...).Model(&model.Website{})
|
db := getDb(opts...).Model(&model.Website{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Preload("WebsiteSSL").Find(&websites).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Preload("WebsiteSSL").Find(&websites).Error
|
||||||
return count, websites, err
|
return count, websites, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ func (w *WebsiteAcmeAccountRepo) Page(page, size int, opts ...DBOption) (int64,
|
|||||||
db := getDb(opts...).Model(&model.WebsiteAcmeAccount{})
|
db := getDb(opts...).Model(&model.WebsiteAcmeAccount{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Find(&accounts).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Find(&accounts).Error
|
||||||
return count, accounts, err
|
return count, accounts, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ func (w WebsiteDnsAccountRepo) Page(page, size int, opts ...DBOption) (int64, []
|
|||||||
db := getDb(opts...).Model(&model.WebsiteDnsAccount{})
|
db := getDb(opts...).Model(&model.WebsiteDnsAccount{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Find(&accounts).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Find(&accounts).Error
|
||||||
return count, accounts, err
|
return count, accounts, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ func (w WebsiteDomainRepo) Page(page, size int, opts ...DBOption) (int64, []mode
|
|||||||
db := getDb(opts...).Model(&model.WebsiteDomain{})
|
db := getDb(opts...).Model(&model.WebsiteDomain{})
|
||||||
count := int64(0)
|
count := int64(0)
|
||||||
db = db.Count(&count)
|
db = db.Count(&count)
|
||||||
err := db.Debug().Limit(size).Offset(size * (page - 1)).Find(&domains).Error
|
err := db.Limit(size).Offset(size * (page - 1)).Find(&domains).Error
|
||||||
return count, domains, err
|
return count, domains, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<el-icon :size="20"><HomeFilled /></el-icon>
|
<el-icon :size="20"><HomeFilled /></el-icon>
|
||||||
</el-link>
|
</el-link>
|
||||||
</span>
|
</span>
|
||||||
<span v-for="item in paths" :key="item.url">
|
<span v-for="item in paths" :key="item.url" class="other">
|
||||||
<span class="split">></span>
|
<span class="split">></span>
|
||||||
<el-link @click="jump(item.url)">{{ item.name }}</el-link>
|
<el-link @click="jump(item.url)">{{ item.name }}</el-link>
|
||||||
</span>
|
</span>
|
||||||
@ -497,8 +497,12 @@ onMounted(() => {
|
|||||||
border-radius: 2px !important;
|
border-radius: 2px !important;
|
||||||
|
|
||||||
.root {
|
.root {
|
||||||
|
vertical-align: middle;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
.other {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
.split {
|
.split {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user