askbot-dragon 1.3.41 → 1.3.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -21,6 +21,21 @@
|
|
|
21
21
|
<template v-else>
|
|
22
22
|
<iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
|
|
23
23
|
</template>
|
|
24
|
+
<!-- <div v-show="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
|
|
25
|
+
<video :src="url" controls width="100%;" height="98%"></video>
|
|
26
|
+
</div>
|
|
27
|
+
<template v-show="fileType !== 'VIDEO' && fileType !== 'OTHER' && url.includes('https://www') || url.includes('http://www')">
|
|
28
|
+
<iframe class="preview_iframe"
|
|
29
|
+
:src="url"
|
|
30
|
+
width="100%"
|
|
31
|
+
height="100%"
|
|
32
|
+
scrolling="100%"
|
|
33
|
+
frameborder="no"
|
|
34
|
+
border="0"></iframe>
|
|
35
|
+
</template>
|
|
36
|
+
<template v-show="fileType == 'OTHER' && !url.includes('https://www') && !url.includes('http://www')">
|
|
37
|
+
<iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
|
|
38
|
+
</template> -->
|
|
24
39
|
<div class="onload_btn" @click="downLoad">
|
|
25
40
|
下载
|
|
26
41
|
</div>
|
|
@@ -107,7 +122,7 @@ export default {
|
|
|
107
122
|
if (decodeURIComponent(url) != url) {
|
|
108
123
|
url = decodeURIComponent(url)
|
|
109
124
|
}
|
|
110
|
-
const fileType = url.substring(url.lastIndexOf('.'));
|
|
125
|
+
// const fileType = url.substring(url.lastIndexOf('.'));
|
|
111
126
|
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
112
127
|
headers:{
|
|
113
128
|
"Content-Type": "application/json",
|
|
@@ -145,7 +160,7 @@ export default {
|
|
|
145
160
|
Toast('请稍后...');
|
|
146
161
|
setTimeout(() =>{
|
|
147
162
|
window.open(res.data,'下载', 'noopener')
|
|
148
|
-
},
|
|
163
|
+
}, 2000)
|
|
149
164
|
}
|
|
150
165
|
}
|
|
151
166
|
})
|