49 lines
925 B
Vue
49 lines
925 B
Vue
<template>
|
|
<div class="dashboard-editor-container">
|
|
<admin-index v-if="userType === UserType.ADMIN"/>
|
|
<mch-index v-else-if="userType === UserType.APP"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import { UserType } from '@/utils/constants'
|
|
import MchIndex from '@/views/mch/index/index.vue'
|
|
import AdminIndex from '@/views/ss/index/index.vue'
|
|
|
|
export default {
|
|
name: 'Index',
|
|
components: {
|
|
AdminIndex,
|
|
MchIndex,
|
|
},
|
|
computed: {
|
|
UserType() {
|
|
return UserType
|
|
},
|
|
...mapGetters(["userType"]),
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.dashboard-editor-container {
|
|
padding: 32px;
|
|
background-color: rgb(240, 242, 245);
|
|
position: relative;
|
|
min-height: calc(100vh - 84px);
|
|
|
|
.chart-wrapper {
|
|
background: #fff;
|
|
padding: 16px 16px 0;
|
|
margin-bottom: 32px;
|
|
}
|
|
}
|
|
|
|
@media (max-width:1024px) {
|
|
.chart-wrapper {
|
|
padding: 8px;
|
|
}
|
|
}
|
|
</style>
|