ci-plus 1.6.9 → 1.7.1
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/README.md +2 -0
- package/package.json +1 -1
- package/src/identificationCard/identificationCard.vue +87 -338
- package/src/utils/ajaxBox.ts +1 -1
- package/src/utils/cardPrint.ts +1039 -997
package/src/utils/ajaxBox.ts
CHANGED
|
@@ -332,7 +332,7 @@ const ajaxBox = {
|
|
|
332
332
|
console.log('后端返回的文件名字符串: ', contentDisposition)
|
|
333
333
|
if (contentDisposition) {
|
|
334
334
|
// 解析文件名
|
|
335
|
-
const fileNameMatch = contentDisposition.match(/filename="(.+)"/)
|
|
335
|
+
const fileNameMatch = contentDisposition.match(/filename="(.+)"/) || contentDisposition.match(/filename\*=utf-8''(.+)/);
|
|
336
336
|
// console.log('文件名数组: ', fileNameMatch)
|
|
337
337
|
if (fileNameMatch.length > 1) {
|
|
338
338
|
// 匹配到文件名,则将文件名解码并赋值给 _fileName
|