mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-13 05:39:06 +00:00
perf: 修复 btoa 的报错,首先 encode 一下
This commit is contained in:
@@ -146,5 +146,7 @@ export function getConstRouteName() {
|
||||
}
|
||||
|
||||
export function toM2MJsonParams(attrFilter) {
|
||||
return ['attr_rules', encodeURIComponent(btoa(JSON.stringify(attrFilter)))]
|
||||
const encoder = new TextEncoder()
|
||||
const data = encoder.encode(JSON.stringify(attrFilter))
|
||||
return ['attr_rules', encodeURIComponent(btoa(String.fromCharCode(...data)))]
|
||||
}
|
||||
|
Reference in New Issue
Block a user