提交 11b6b5c3 authored 作者: 钟是志's avatar 钟是志

30134 求职创业补贴审核界面优化,界面卡顿

上级 d0f50536
import { apiRequest } from '@/webPublic/one_stop_public/utils/request'; import { apiRequest } from '@/webPublic/one_stop_public/utils/request';
import { isJSON } from '@/webPublic/zyd_public/utils/utils'; import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import baseX from 'base-x'; import baseX from 'base-x';
import encryptApiList from '@/webPublic/one_stop_public/Base16/encryptApiList'; import encryptApiList from './encryptApiList';
var BASE16 = '0123456789abcdef'; var BASE16 = '0123456789abcdef';
var bs16 = baseX(BASE16); var bs16 = baseX(BASE16);
...@@ -64,16 +64,15 @@ export async function countAllValues(datas, item) { ...@@ -64,16 +64,15 @@ export async function countAllValues(datas, item) {
return datas; return datas;
} }
export async function giveBase16EncodeAsync(datas, url) { export async function giveBase16EncodeAsync(datas, url) {
if (!checkOpenBase16()) {
return datas;
}
if (url && typeof url === 'string') { if (url && typeof url === 'string') {
for (let item of encryptApiList) { // console.log(url);
if (url.indexOf(item.api) > -1) { // console.log(encryptApiList);
for (const item of encryptApiList) {
if (item.api && url.indexOf(item.api) > -1 && item.key) {
for (let g of item.key) { for (let g of item.key) {
if (datas[g] && item.filterEmpty && item.filterEmpty.includes(g)) { // if (datas && datas[g] && item.filterEmpty && item.filterEmpty.includes(g)) {
// 压缩代码功能暂时屏蔽 // 压缩代码功能暂时屏蔽
/*** /***
// console.log(datas[g]); // console.log(datas[g]);
...@@ -83,8 +82,7 @@ export async function giveBase16EncodeAsync(datas, url) { ...@@ -83,8 +82,7 @@ export async function giveBase16EncodeAsync(datas, url) {
// console.log('%c加密数据压缩后字段' + g + '= ', 'color: orange;'); // console.log('%c加密数据压缩后字段' + g + '= ', 'color: orange;');
// console.log('%c'+ datas[g] , 'color: orange;'); // console.log('%c'+ datas[g] , 'color: orange;');
***/ ***/
} // }
if (g === 'allValues' && typeof datas[g] !== 'undefined') { if (g === 'allValues' && typeof datas[g] !== 'undefined') {
datas = await countAllValues(datas, item); // 循环中 不要写await datas = await countAllValues(datas, item); // 循环中 不要写await
datas = giveKey('allValues', datas); datas = giveKey('allValues', datas);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论