askbot-dragon 1.3.42 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.3.42",
3
+ "version": "1.3.44",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -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",
@@ -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
- window.open(res.data,'下载', 'noopener')
163
- }, 1000)
161
+ // setTimeout(() =>{
162
+ // window.open(res.data,'下载', 'noopener')
163
+ // }, 2000)
164
+ window.open(res.data,'下载', 'noopener')
164
165
  }
165
166
  }
166
167
  })