hmp %!s(int64=4) %!d(string=hai) anos
pai
achega
bb1454f55d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      assets/http/service.js

+ 1 - 1
assets/http/service.js

@@ -50,7 +50,7 @@ http.interceptors.request.use((config) => {
 	// 2:post请求
 	// 3:请求体不为空
 	// 4: url不在白名单内
-	if (Global.enabledCrypto && config.method == 'POST' && config.data && crypto.isNotInWhiteList(config.url)) {
+	if (setting.enabledCrypto && config.method == 'POST' && config.data && crypto.isNotInWhiteList(config.url)) {
 		//报文加密
 		let encrypt= crypto.encrypt(JSON.stringify(config.data))
 		config.data=encrypt