n20-common-lib 2.14.22 → 2.15.0

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.14.22",
3
+ "version": "2.15.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,6 +1,8 @@
1
1
  .el-message {
2
2
  padding-top: 12px;
3
3
  padding-bottom: 12px;
4
+ overflow-wrap: anywhere;
5
+ max-width: 80%;
4
6
  }
5
7
 
6
8
  .el-message-box {
@@ -46,7 +48,7 @@
46
48
  border-color: var(--color-primary-hover);
47
49
  }
48
50
 
49
- & .el-button+.el-button {
51
+ & .el-button + .el-button {
50
52
  margin-left: 0;
51
53
  margin-right: 16px;
52
54
  }
@@ -101,7 +103,7 @@
101
103
  border-color: var(--color-primary-hover);
102
104
  }
103
105
 
104
- & .el-button+.el-button {
106
+ & .el-button + .el-button {
105
107
  margin-left: 0;
106
108
  margin-right: 16px;
107
109
  }
@@ -160,7 +162,7 @@
160
162
  }
161
163
 
162
164
  .el-message--success {
163
- border: 1px solid rgba(72, 210, 160, 0.40);
165
+ border: 1px solid rgba(72, 210, 160, 0.4);
164
166
  }
165
167
 
166
168
  .el-message--error {
@@ -171,7 +173,6 @@
171
173
  border: 1px solid #ffe28d;
172
174
  }
173
175
 
174
-
175
176
  .message-por.el-message--info {
176
177
  .el-message__icon {
177
178
  color: $--color-primary;
@@ -190,7 +191,6 @@
190
191
  color: $--color-text-regular;
191
192
  }
192
193
 
193
-
194
194
  .el-message--success .el-message__content {
195
195
  color: $--color-text-regular;
196
196
  }
@@ -213,4 +213,4 @@
213
213
 
214
214
  .el-message-box__status.el-icon-info {
215
215
  color: $--messagebox-warning-color;
216
- }
216
+ }
@@ -91,7 +91,7 @@ export async function getSign(plain, dn = getDN()) {
91
91
 
92
92
  return await performSign(plainText, pin, checkRes)
93
93
  } catch (error) {
94
- return Promise.reject(error)
94
+ return ''
95
95
  }
96
96
  }
97
97
 
@@ -119,12 +119,13 @@ export async function getCertInfo(dn) {
119
119
  var rv = SKF_EnumDev(1) // 1: 获取ukey列表
120
120
  if (rv.DevList.length === 0) {
121
121
  Message.error('没有检测到Ukey!')
122
- reject()
123
- return -1
122
+ resolve(-1)
123
+ return
124
124
  }
125
125
  } catch (error) {
126
126
  checkAvailable()
127
- reject()
127
+ resolve(-1)
128
+ return
128
129
  }
129
130
  const rvList = rv.DevList?.split(',')
130
131
  let indexDn = -1
@@ -153,8 +154,7 @@ export async function getCertInfo(dn) {
153
154
  if (indexDn === -1) {
154
155
  console.log(DNList)
155
156
  Message.error('当前Ukey不匹配!')
156
- reject()
157
- return -1
157
+ resolve(-1)
158
158
  } else {
159
159
  resolve({ Container, Application })
160
160
  }