zhoupeng 2 роки тому
батько
коміт
55324db405
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      reado-app/utils/jsencrypt.js

+ 3 - 0
reado-app/utils/jsencrypt.js

@@ -7,6 +7,9 @@ import {
 const publickey = getPubKey()
 
 export function encrypt(txt) {
+	if(!publickey){
+		return "";
+	}
 	const encryptor = new JSEncrypt()
 	// 设置公钥
 	encryptor.setPublicKey(publickey)