|
@@ -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: [
|
|
|
{
|
|
@@ -39,6 +40,9 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.getMemberInfo()
|
|
|
+ if (window.goTemplateData && window.goTemplateData.inIframe) { // 在工作台内
|
|
|
+ this.inIframe = true
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions({
|
|
@@ -59,4 +63,13 @@ export default {
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
}
|
|
|
+.in-app{
|
|
|
+ width: 100%;
|
|
|
+ min-width: 1012px;
|
|
|
+ .docs-app-main{
|
|
|
+ width: auto!important;
|
|
|
+ min-width: auto!important;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
</style>
|