askbot-dragon 1.3.42 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.3.42",
3
+ "version": "1.3.43",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -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
- <div v-show="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
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>
@@ -122,7 +122,7 @@ export default {
122
122
  if (decodeURIComponent(url) != url) {
123
123
  url = decodeURIComponent(url)
124
124
  }
125
- const fileType = url.substring(url.lastIndexOf('.'));
125
+ // const fileType = url.substring(url.lastIndexOf('.'));
126
126
  this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
127
127
  headers:{
128
128
  "Content-Type": "application/json",
@@ -160,7 +160,7 @@ export default {
160
160
  Toast('请稍后...');
161
161
  setTimeout(() =>{
162
162
  window.open(res.data,'下载', 'noopener')
163
- }, 1000)
163
+ }, 2000)
164
164
  }
165
165
  }
166
166
  })