1
0
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:
zhengkunwang223 2023-02-09 16:13:06 +08:00 committed by zhengkunwang223
parent aa26b13fad
commit f6feac6106
8 changed files with 13 additions and 9 deletions

View File

@ -39,7 +39,7 @@ func (a AppRepo) Page(page, size int, opts ...DBOption) (int64, []model.App, err
db := getDb(opts...).Model(&model.App{})
count := int64(0)
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
}

View File

@ -99,7 +99,7 @@ func (a *AppInstallRepo) Page(page, size int, opts ...DBOption) (int64, []model.
db := getDb(opts...).Model(&model.AppInstall{})
count := int64(0)
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
}
@ -108,7 +108,7 @@ func (a *AppInstallRepo) BatchUpdateBy(maps map[string]interface{}, opts ...DBOp
if len(opts) == 0 {
db = db.Where("1=1")
}
return db.Debug().Updates(&maps).Error
return db.Updates(&maps).Error
}
type RootInfo struct {

View File

@ -42,7 +42,7 @@ func (u *BackupRepo) ListRecord(opts ...DBOption) ([]model.BackupRecord, error)
for _, opt := range opts {
db = opt(db)
}
err := db.Debug().Find(&users).Error
err := db.Find(&users).Error
return users, err
}

View File

@ -72,7 +72,7 @@ func (w *WebsiteRepo) Page(page, size int, opts ...DBOption) (int64, []model.Web
db := getDb(opts...).Model(&model.Website{})
count := int64(0)
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
}

View File

@ -22,7 +22,7 @@ func (w *WebsiteAcmeAccountRepo) Page(page, size int, opts ...DBOption) (int64,
db := getDb(opts...).Model(&model.WebsiteAcmeAccount{})
count := int64(0)
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
}

View File

@ -12,7 +12,7 @@ func (w WebsiteDnsAccountRepo) Page(page, size int, opts ...DBOption) (int64, []
db := getDb(opts...).Model(&model.WebsiteDnsAccount{})
count := int64(0)
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
}

View File

@ -31,7 +31,7 @@ func (w WebsiteDomainRepo) Page(page, size int, opts ...DBOption) (int64, []mode
db := getDb(opts...).Model(&model.WebsiteDomain{})
count := int64(0)
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
}

View File

@ -15,7 +15,7 @@
<el-icon :size="20"><HomeFilled /></el-icon>
</el-link>
</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>
<el-link @click="jump(item.url)">{{ item.name }}</el-link>
</span>
@ -497,8 +497,12 @@ onMounted(() => {
border-radius: 2px !important;
.root {
vertical-align: middle;
margin-left: 10px;
}
.other {
vertical-align: middle;
}
.split {
margin-left: 5px;
margin-right: 5px;