|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="docs-app">
|
|
|
+ <div :class="{'docs-app':true,'in-app': inIframe}">
|
|
|
<div class="docs-app-main">
|
|
|
<router-view></router-view>
|
|
|
</div>
|
|
@@ -12,6 +12,7 @@ export default {
|
|
|
components: {},
|
|
|
data () {
|
|
|
return {
|
|
|
+ inIframe: false,
|
|
|
cashViews: [],
|
|
|
links: [
|
|
|
{
|
|
@@ -37,15 +38,18 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
console.log(this.$store, 'this.$store')
|
|
|
this.getMemberInfo()
|
|
|
+ if (window.goTemplateData && window.goTemplateData.inIframe) { // 在工作台内
|
|
|
+ this.inIframe = true
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions({
|
|
|
getUserMemberInfo: 'user/getUserMemberInfo'
|
|
|
}),
|
|
|
- getMemberInfo() {
|
|
|
+ getMemberInfo () {
|
|
|
this.getUserMemberInfo()
|
|
|
}
|
|
|
}
|
|
@@ -60,4 +64,13 @@ export default {
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
}
|
|
|
+.in-app{
|
|
|
+ width: 100%;
|
|
|
+ min-width: 1012px;
|
|
|
+ .docs-app-main{
|
|
|
+ width: auto!important;
|
|
|
+ min-width: auto!important;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
</style>
|