const xflinkRoom = {
ls_bear1_linkRoom: [
{
localPort: ‘1’,
remotePort: ‘5’,
room: ‘ls_core2’,
roomName: ‘临水市承载中心机房端口’
},
{
localPort: ‘2’,
remotePort: ‘2’,
room: ‘ls_bear2’,
roomName: ‘临水市2区汇聚机房端口’
},
{
localPort: ‘3’,
remotePort: ‘1’,
room: ‘ls_wire1’,
roomName: ‘临水市A站点机房端口’
},
{
localPort: ‘4’,
remotePort: ‘2’,
room: ‘ls_wire1’,
roomName: ‘临水市A站点机房端口’
}
],
qs_bone1_linkRoom: [
{
localPort: ‘1’,
remotePort: ‘’,
room: ‘qc_core2’,
roomName: ‘国家骨干网’
},
{
localPort: ‘2’,
remotePort: ‘1’,
room: ‘qc_core2’,
roomName: ‘青川市承载中心机房端口’
},
{
localPort: ‘3’,
remotePort: ‘1’,
room: ‘ls_core2’,
roomName: ‘临水市承载中心机房端口’
}
]
}
export default {
xflinkRoom
}
在另一个js文件中引入
import XFLinkRoom from ‘…/…/views/constants/XFLinkRoom’
在文件中使用
XFLinkRoom.xflinkRoom.ls_bear1_linkRoom
XFLinkRoom.xflinkRoom.qs_bone1_linkRoom