parent
7af6535bb2
commit
342df4d025
6 changed files with 78 additions and 8 deletions
@ -0,0 +1,39 @@ |
|||||||
|
<template> |
||||||
|
<div class="wrap"> |
||||||
|
<iframe class="fileIframe" id="fileIframe" :src="src" frameborder="0"></iframe> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
export default { |
||||||
|
data () { |
||||||
|
return { |
||||||
|
src: '' |
||||||
|
} |
||||||
|
}, |
||||||
|
watch: { |
||||||
|
'$route.query': { |
||||||
|
handler () { |
||||||
|
const { src } = this.$route.query |
||||||
|
this.src = 'https://view.officeapps.live.com/op/view.aspx?src=' + src |
||||||
|
}, |
||||||
|
deep: true, |
||||||
|
immediate: true |
||||||
|
} |
||||||
|
}, |
||||||
|
mounted () { |
||||||
|
|
||||||
|
}, |
||||||
|
methods: { |
||||||
|
|
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss" scoped> |
||||||
|
iframe { |
||||||
|
width: 100vw; |
||||||
|
height: calc(100vh + 160px) !important; |
||||||
|
margin-top: -160px; |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,14 @@ |
|||||||
|
import BasicLayout from '@/layouts/home' |
||||||
|
const name = 'previewPPT' |
||||||
|
export default { |
||||||
|
path: `/${name}`, |
||||||
|
component: BasicLayout, |
||||||
|
children: [ |
||||||
|
{ |
||||||
|
name, |
||||||
|
path: `/${name}`, |
||||||
|
component: () => import(`@/pages/${name}`), |
||||||
|
meta: { title: '' } |
||||||
|
} |
||||||
|
] |
||||||
|
}; |
Loading…
Reference in new issue