feat: Add Export in some menu

fix: Left menu height
fix: Export csv when double quotation marks in data
This commit is contained in:
lejianwen
2025-06-15 17:16:27 +08:00
parent 42cc3974d4
commit fc7e0595a1
12 changed files with 84 additions and 4286 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export function jsonToCsv (data) {
let keys = Object.keys(data[0])
csv += keys.join(',') + '\n'
data.forEach(row => {
csv += keys.map(key => `"${row[key]}"`).join(',') + '\n'
csv += keys.map(key => `"${row[key].toString().replaceAll('"', '""')}"`).join(',') + '\n'
})
return new Blob([csv], { type: 'text/csv' })
}
+1 -1
View File
@@ -447,7 +447,7 @@
"One": "新密码"
},
"NewPasswordEqualOldPassword": {
"One": "New Password cannot be the same as Old Password"
"One": "新密码不能与旧密码相同"
},
"ConfirmPassword": {
"One": "确认密码"
-4272
View File
File diff suppressed because it is too large Load Diff