临时提交,修复文件上传失败问题

master
blak-kong 2 years ago
parent fdcec5275e
commit 8ea89ba60a

@ -118,6 +118,7 @@ export const Ajax = (params) => {
export const AjaxUploadFile = (params, formData) => {
const app = Taro.getApp();
const global = store.getState().globalStore;
const domain = global.domain;
Taro.showLoading({
title: "请求中...",
@ -175,11 +176,12 @@ export const AjaxUploadFile = (params, formData) => {
export const AjaxFormData = (params) => {
const app = Taro.getApp();
const global = store.getState().globalStore;
const domain = global.domain;
// 防止多次点击
const requestUrlList = global_requestUrlList;
const whiteList = ["/Api/MessageList"];
const whiteList = [];
if (
requestUrlList.indexOf(params.url) > -1 &&
whiteList.indexOf(params.url) < 0

Loading…
Cancel
Save