File tree Expand file tree Collapse file tree 5 files changed +1
-7
lines changed
src/view/systemTools/system Expand file tree Collapse file tree 5 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ sqlite:
3030# 切换本地与七牛云上传,分配头像和文件路径
3131localupload :
3232 local : false
33- avatar-path : uploads/avatar
3433 file-path : uploads/file
3534
3635# 请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ type Redis struct {
4949
5050type LocalUpload struct {
5151 Local bool `mapstructure:"local" json:"local" yaml:"local"`
52- AvatarPath string `mapstructure:"avatar-path" json:"avatarPath" yaml:"avatar-path"`
5352 FilePath string `mapstructure:"file-path" json:"filePath" yaml:"file-path"`
5453}
5554
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import (
1616func Routers () * gin.Engine {
1717 var Router = gin .Default ()
1818 // 为用户头像和文件提供静态地址
19- Router .StaticFS (global .GVA_CONFIG .LocalUpload .AvatarPath , http .Dir (global .GVA_CONFIG .LocalUpload .AvatarPath ))
2019 Router .StaticFS (global .GVA_CONFIG .LocalUpload .FilePath , http .Dir (global .GVA_CONFIG .LocalUpload .FilePath ))
2120 // Router.Use(middleware.LoadTls()) // 打开就能玩https了
2221 global .GVA_LOG .Debug ("use middleware logger" )
Original file line number Diff line number Diff line change 11ENV = ' production'
2- VUE_APP_BASE_API = ' /v1 '
2+ VUE_APP_BASE_API = ' /api '
Original file line number Diff line number Diff line change 7575 <el-form-item label =" 本地或七牛云" >
7676 <el-checkbox v-model =" config.localUpload.local" >本地</el-checkbox >
7777 </el-form-item >
78- <el-form-item label =" 本地头像路径" >
79- <el-input v-model =" config.localUpload.avatarPath" ></el-input >
80- </el-form-item >
8178 <el-form-item label =" 本地文件路径" >
8279 <el-input v-model =" config.localUpload.filePath" ></el-input >
8380 </el-form-item >
You can’t perform that action at this time.
0 commit comments