n20-common-lib 2.13.11 → 2.13.13

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": "n20-common-lib",
3
- "version": "2.13.11",
3
+ "version": "2.13.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -136,7 +136,7 @@ export default {
136
136
  // 下载文件名
137
137
  const name = this.name || blob.name
138
138
  let url = ''
139
- if (this.imgType.test(name)) {
139
+ if (!this.seeTypes.test(name)) {
140
140
  url = URL.createObjectURL(blob)
141
141
  } else {
142
142
  url = `/api/onlinePreview?beid=${id}`
@@ -162,15 +162,21 @@ function verifyDn(dnList, dn) {
162
162
  return C
163
163
  }
164
164
  })
165
+ console.log(dnListA)
165
166
  if (dnListA.length > 0) {
166
- dnListA.forEach((item) => {
167
- if (item.certType === 'SM2' && item.keyUsage === 'signature') {
168
- index = item.index
167
+ for (let i = 0; i < dnListA.length; i++) {
168
+ if (dnListA[i].CertType === 'SM2' && dnListA[i].KeyUsage === 'signature') {
169
+ index = dnListA[i].index
170
+ certIndex = dnListA[i].index
171
+ break
172
+ } else if (dnListA[i].CertType === 'RSA') {
173
+ index = dnListA[i].index
174
+ certIndex = dnListA[i].index
175
+ break
169
176
  } else {
170
- index = dnListA[0].index
177
+ index = -1
171
178
  }
172
- certIndex = item.index
173
- })
179
+ }
174
180
  }
175
181
  if (index === -1) {
176
182
  let dnListB = dnList?.map((res) => res.certDN)?.join(',')