| | |
| | | </template> |
| | | |
| | | <script> |
| | | import iframeToggle from "./IframeToggle/index" |
| | | import iframeToggle from "./IframeToggle/index"; |
| | | |
| | | export default { |
| | | name: 'AppMain', |
| | | name: "AppMain", |
| | | components: { iframeToggle }, |
| | | computed: { |
| | | cachedViews() { |
| | | return this.$store.state.tagsView.cachedViews |
| | | return this.$store.state.tagsView.cachedViews; |
| | | }, |
| | | key() { |
| | | return this.$route.path |
| | | } |
| | | return this.$route.path; |
| | | }, |
| | | }, |
| | | watch: { |
| | | $route() { |
| | | this.addIframe() |
| | | } |
| | | this.addIframe(); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.addIframe() |
| | | this.addIframe(); |
| | | }, |
| | | methods: { |
| | | addIframe() { |
| | | const {name} = this.$route |
| | | const { name } = this.$route; |
| | | if (name && this.$route.meta.link) { |
| | | this.$store.dispatch('tagsView/addIframeView', this.$route) |
| | | this.$store.dispatch("tagsView/addIframeView", this.$route); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | .hasTagsView { |
| | | .app-main { |
| | | /* 84 = navbar + tags-view = 50 + 34 */ |
| | | min-height: calc(100vh - 84px); |
| | | min-height: calc(100vh - 94px); |
| | | } |
| | | |
| | | .fixed-header + .app-main { |