mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
[update]修复Url问题导致消息无法传递到子组件
This commit is contained in:
@@ -29,9 +29,7 @@ export default {
|
|||||||
defaultSetting: {
|
defaultSetting: {
|
||||||
async: {
|
async: {
|
||||||
enable: true,
|
enable: true,
|
||||||
url: this.treeSetting.showAssets
|
url: `${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`,
|
||||||
? `${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`
|
|
||||||
: `${process.env.VUE_APP_BASE_API}${this.setUrlParam(this.setting.treeUrl, 'assets', '0')}`,
|
|
||||||
autoParam: ['id=key', 'name=n', 'level=lv'],
|
autoParam: ['id=key', 'name=n', 'level=lv'],
|
||||||
type: 'get'
|
type: 'get'
|
||||||
},
|
},
|
||||||
|
@@ -19,6 +19,7 @@ export default {
|
|||||||
showRefresh: true,
|
showRefresh: true,
|
||||||
showAssets: false,
|
showAssets: false,
|
||||||
nodeUrl: '/api/v1/assets/nodes/',
|
nodeUrl: '/api/v1/assets/nodes/',
|
||||||
|
// ?assets=0不显示资产. =1显示资产
|
||||||
treeUrl: '/api/v1/assets/nodes/children/tree/?assets=0'
|
treeUrl: '/api/v1/assets/nodes/children/tree/?assets=0'
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
|
Reference in New Issue
Block a user