Commit 0f164880 authored by liujiangnan's avatar liujiangnan

feat

parent ee023976
...@@ -2,11 +2,10 @@ ...@@ -2,11 +2,10 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script> <script type="text/javascript" src="//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
<title>Vite App</title> <title>Vite App</title>
<script type="module" crossorigin src="/assets/index-D4GghGHu.js"></script> <script type="module" crossorigin src="assets/index-BRONZzV2.js"></script>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -24,7 +24,9 @@ function errorHandler () {} ...@@ -24,7 +24,9 @@ function errorHandler () {}
<vue-office-docx :src="url" style="height: 100vh" @rendered="renderedHandler" @error="errorHandler" /> <vue-office-docx :src="url" style="height: 100vh" @rendered="renderedHandler" @error="errorHandler" />
</template> </template>
<template v-if="url.indexOf(`.ppt`) > 0 || url.indexOf(`.PPT`) > 0 || url.indexOf(`.pptx`) > 0 || url.indexOf(`.PPTX`) > 0"> <template v-if="url.indexOf(`.ppt`) > 0 || url.indexOf(`.PPT`) > 0 || url.indexOf(`.pptx`) > 0 || url.indexOf(`.PPTX`) > 0">
<div style="height: 100vh">
<iframe frameborder="0" width="100%" height="100%" :src="ppt_html" ></iframe> <iframe frameborder="0" width="100%" height="100%" :src="ppt_html" ></iframe>
</div>
</template> </template>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment