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:
Philipp Bankonier 2019-08-05 17:07:42 +02:00 committed by Rohit Yadav
parent 1bbca4bf90
commit f4a3986fee
3 changed files with 3 additions and 5 deletions

View File

@ -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>

View File

@ -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

View File

@ -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 })
})