mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-10 11:26:50 +08:00
修正获取菜单时的null判断
This commit is contained in:
@@ -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'
|
||||
},
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user