askbot-dragon 1.5.34-beta → 1.5.35-beta

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.5.34-beta",
3
+ "version": "1.5.35-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -245,9 +245,9 @@ export default {
245
245
  this.$refs.previewPdf.fileType = type
246
246
  this.$refs.previewPdf.tagIds = item.tagIds
247
247
  this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
248
- let type = url.substring(url.lastIndexOf('.'))
249
- if (type === '.doc' || type === '.docx'){
250
- this.$refs.previewPdf.fileName = type;
248
+ let fileName = url.substring(url.lastIndexOf('.'))
249
+ if (fileName === '.doc' || fileName === '.docx'){
250
+ this.$refs.previewPdf.fileName = fileName;
251
251
  } else {
252
252
  this.$refs.previewPdf.fileName = '';
253
253
  }