three-trees-ui 1.0.65 → 1.0.67

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": "three-trees-ui",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -317,7 +317,9 @@
317
317
  if (
318
318
  file.name &&
319
319
  this.accept &&
320
- !this.accept.split(',').includes(file.name.split('.')[1])
320
+ !this.accept
321
+ .split(',')
322
+ .includes(file.name.split('.')[file.name.split('.').length - 1])
321
323
  ) {
322
324
  this.$message('请选择规定范围的文件进行上传!')
323
325
  return false