修正获取菜单时的null判断

This commit is contained in:
吴季分
2025-10-30 16:05:16 +08:00
parent 625c2f78f6
commit 490af0d492
2 changed files with 3 additions and 3 deletions

View File

@@ -810,8 +810,8 @@
// 配置模块 - 存储项目配置信息
var Config = {
ipConfig: {
ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7197'
// ip: Utils.getQueryParam('ip') || 'http://10.1.20.39:7537/api'
// ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7197'
ip: Utils.getQueryParam('ip') || 'http://10.1.20.39:7537/api'
// ip: Utils.getQueryParam('ip') || 'http://10.1.105.116:7537/api'
},

View File

@@ -243,7 +243,7 @@ export default {
getRoleMenu(roleId)
.then(response => {
const nodes = response.content.content
if (nodes.length === 0) {
if (nodes === null || nodes.length === 0) {
this.defaultCheckedKeys = []
this.$refs.menuTreeRef.setCheckedKeys([])
return