fix save bug

This commit is contained in:
xtaodada 2023-02-02 23:55:28 +08:00
parent 6d854dc330
commit 40712a5a8a
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -18,7 +18,7 @@ export default class Common {
if (typeof data === 'string' || typeof data === 'number') {
dataStr = data.toString()
}
if (dataStr) {
if (dataStr != null) {
localStorage.setItem('pgp-' + name, dataStr)
}
}