askbot-dragon 1.3.43 → 1.3.44
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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<i class="iconfont guoran-shanchu"></i>
|
|
7
7
|
</section>
|
|
8
8
|
</div>
|
|
9
|
-
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
|
|
9
|
+
<!-- <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
|
|
10
10
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
11
11
|
</div>
|
|
12
12
|
<template v-else-if="url.includes('https://www') || url.includes('http://www')">
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
<template v-else>
|
|
22
22
|
<iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
23
|
+
</template> -->
|
|
24
|
+
<div v-show="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
|
|
25
25
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
26
26
|
</div>
|
|
27
27
|
<template v-show="fileType !== 'VIDEO' && fileType !== 'OTHER' && url.includes('https://www') || url.includes('http://www')">
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
<template v-show="fileType == 'OTHER' && !url.includes('https://www') && !url.includes('http://www')">
|
|
37
37
|
<iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
|
|
38
|
-
</template>
|
|
38
|
+
</template>
|
|
39
39
|
<div class="onload_btn" @click="downLoad">
|
|
40
40
|
下载
|
|
41
41
|
</div>
|
|
@@ -158,9 +158,10 @@ export default {
|
|
|
158
158
|
// a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
159
159
|
this.close()
|
|
160
160
|
Toast('请稍后...');
|
|
161
|
-
setTimeout(() =>{
|
|
162
|
-
|
|
163
|
-
}, 2000)
|
|
161
|
+
// setTimeout(() =>{
|
|
162
|
+
// window.open(res.data,'下载', 'noopener')
|
|
163
|
+
// }, 2000)
|
|
164
|
+
window.open(res.data,'下载', 'noopener')
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
})
|