mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug: fix console error (#6)
Small changes to remove some console errors that currently occur. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
1bbca4bf90
commit
f4a3986fee
@ -25,14 +25,14 @@
|
||||
<a-icon type="setting"/>
|
||||
<span>测试</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2" disabled>
|
||||
<a-menu-item key="3" disabled>
|
||||
<a :href="helpUrl" target="_blank">
|
||||
<a-icon type="question-circle-o"></a-icon>
|
||||
<span>Help</span>
|
||||
</a>
|
||||
</a-menu-item>
|
||||
<a-menu-divider/>
|
||||
<a-menu-item key="3">
|
||||
<a-menu-item key="4">
|
||||
<a href="javascript:;" @click="handleLogout">
|
||||
<a-icon type="logout"/>
|
||||
<span>Logout</span>
|
||||
|
||||
@ -11,7 +11,6 @@
|
||||
|
||||
<script>
|
||||
import store from '@/store'
|
||||
import { mapState } from 'vuex'
|
||||
import CapacityDashboard from './CapacityDashboard'
|
||||
import UsageDashboard from './UsageDashboard'
|
||||
|
||||
@ -27,7 +26,6 @@ export default {
|
||||
project: false
|
||||
}
|
||||
},
|
||||
computed: mapState(['project']),
|
||||
mounted () {
|
||||
this.showCapacityDashboard = store.getters.apis.hasOwnProperty('listCapacity')
|
||||
this.project = store.getters.project !== undefined && store.getters.project.id !== undefined
|
||||
|
||||
@ -79,7 +79,7 @@ export default {
|
||||
api('listVirtualMachines', { listall: true }).then(json => {
|
||||
var count = 0
|
||||
if (json && json.listvirtualmachinesresponse) {
|
||||
count = json.listnetworksresponse.count
|
||||
count = json.listvirtualmachinesresponse.count
|
||||
}
|
||||
this.stats.push({ name: 'Total VMs', count: count })
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user