zhoupeng před 2 roky
rodič
revize
55324db405
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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)