v2.6.5版本更新 (#1757)

* feature:增加资源加载loading

* feature:修正sql无法落盘的问题

* fixed: 修复切换角色出现404的问题。

* 删除selectImage.vue中chooseImg下多余的console.log(url)

---------

Co-authored-by: krank <emosick@qq.com>
Co-authored-by: Qing Liang <106448173+xue-ding-e@users.noreply.github.com>
This commit is contained in:
PiexlMax(奇淼
2024-05-26 21:49:34 +08:00
committed by GitHub
co-authored by krank Qing Liang
parent a6a65ed9f4
commit 02fc5036d7
25 changed files with 307 additions and 315 deletions
+2 -10
View File
@@ -1,14 +1,10 @@
package internal
import (
"gorm.io/gorm/schema"
"log"
"os"
"time"
"github.com/flipped-aurora/gin-vue-admin/server/global"
"gorm.io/gorm"
"gorm.io/gorm/logger"
"gorm.io/gorm/schema"
)
type DBBASE interface {
@@ -29,11 +25,7 @@ func (g *_gorm) Config(prefix string, singular bool) *gorm.Config {
},
DisableForeignKeyConstraintWhenMigrating: true,
}
_default := logger.New(log.New(os.Stdout, "\r\n", log.LstdFlags), logger.Config{
SlowThreshold: 200 * time.Millisecond,
LogLevel: logger.Warn,
Colorful: true,
})
_default := NewZapLogger()
var logMode DBBASE
switch global.GVA_CONFIG.System.DbType {
case "mysql":