提交 849e3c18 authored 作者: 钟是志's avatar 钟是志

24455 学工首页,学生人数统计-班级没有显示数据

上级 74eaff58
...@@ -14,6 +14,7 @@ import { ...@@ -14,6 +14,7 @@ import {
import { openToast } from '../location/Notification'; import { openToast } from '../location/Notification';
import { showToast } from '../location/Toast'; import { showToast } from '../location/Toast';
import { offline } from '../location/Toast'; import { offline } from '../location/Toast';
import { Base16Encode } from "@/webPublic/one_stop_public/Base16";
const codeMessage = { const codeMessage = {
200: '服务器成功返回请求的数据。', 200: '服务器成功返回请求的数据。',
...@@ -295,10 +296,11 @@ export const request = (url, data, options = {}) => { ...@@ -295,10 +296,11 @@ export const request = (url, data, options = {}) => {
}; };
const setRequestConfig = config => { const setRequestConfig = config => {
if(data && data.sqlKey){
data.sqlKey = Base16Encode(data.sqlKey);
}
return (url, data, options = {}) => { return (url, data, options = {}) => {
if(data && data.sqlKey){
data.sqlKey = Base16Encode(data.sqlKey);
}
if (Array.isArray(url)) { if (Array.isArray(url)) {
return Promise.all( return Promise.all(
url.map(ags => { url.map(ags => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论