4 Commits

Author SHA1 Message Date
root
d2a6a564bd Pre Merge pull request !422 from root/N/A 2025-08-23 03:48:14 +00:00
RuoYi
1284f6763f 用户导入添加验证提示 2025-08-23 11:47:17 +08:00
RuoYi
eeb6303200 优化布局设置显示 2025-08-23 11:47:07 +08:00
root
64410bafc4 update docker/nginx/conf/nginx.conf.
Signed-off-by: root <15907907+xuezhihongg@user.noreply.gitee.com>
2025-07-16 02:35:07 +00:00
3 changed files with 13 additions and 8 deletions

View File

@@ -28,10 +28,9 @@ http {
proxy_pass http://ruoyi-gateway:8080/; proxy_pass http://ruoyi-gateway:8080/;
} }
# 避免actuator暴露 # springdoc proxy
if ($uri ~ "/actuator") { location~^/v3/api-docs/(.*){
return 403; proxy pass http://localhost:8080/v3/api-docs/$1;
}
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location = /50x.html { location = /50x.html {

View File

@@ -34,15 +34,14 @@
<router-link to="/user/profile"> <router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item> <el-dropdown-item>个人中心</el-dropdown-item>
</router-link> </router-link>
<el-dropdown-item @click.native="setLayout" v-if="setting">
<span>布局设置</span>
</el-dropdown-item>
<el-dropdown-item divided @click.native="logout"> <el-dropdown-item divided @click.native="logout">
<span>退出登录</span> <span>退出登录</span>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<div class="right-menu-item hover-effect setting" @click="setLayout" v-if="setting">
<svg-icon icon-class="more-up" />
</div>
</div> </div>
</div> </div>
</template> </template>
@@ -178,6 +177,7 @@ export default {
.avatar-wrapper { .avatar-wrapper {
margin-top: 10px; margin-top: 10px;
right: 8px;
position: relative; position: relative;
.user-avatar { .user-avatar {
@@ -190,6 +190,7 @@ export default {
.user-nickname{ .user-nickname{
position: relative; position: relative;
bottom: 10px; bottom: 10px;
left: 2px;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
} }

View File

@@ -546,6 +546,11 @@ export default {
}, },
// 提交上传文件 // 提交上传文件
submitFileForm() { submitFileForm() {
const file = this.$refs.upload.uploadFiles
if (!file || file.length === 0 || !file[0].name.toLowerCase().endsWith('.xls') && !file[0].name.toLowerCase().endsWith('.xlsx')) {
this.$modal.msgError("请选择后缀为 “xls”或“xlsx”的文件。")
return
}
this.$refs.upload.submit() this.$refs.upload.submit()
} }
} }