merchant.vue
586 Bytes
<template>
<iframe
class="box"
allowfullscreen
:src="`${iframeSrc}?t=${SSOInfo.t}`"
></iframe>
</template>
<script>
import { baseConfig } from "@/main"
import { mapState } from 'vuex'
export default {
data() {
return {
iframeSrc: baseConfig.merchantsUrl + '/html/merchant/index.html',
}
},
computed: {
...mapState({
SSOInfo: (state) => state.d2admin.user.SSOInfo,
})
}
}
</script>
<style lang="scss" scoped>
.box {
position: absolute;
width: 97%;
height: 96%;
border: 0;
margin: 20px;
background-color: #fff;
}
</style>