瀏覽代碼

检验任务上传添加user,username, gxno,去除token获取失败的调试弹窗

zhangxike 5 天之前
父節點
當前提交
bc613661c9
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      utils/qcDataProcessor.uts

+ 5 - 5
utils/qcDataProcessor.uts

@@ -218,14 +218,14 @@ export const downloadDataFromAPI = async (gxpk : string, callback ?: () => void)
 		const infoJson = await getLatestTask(gxpk, null);
 		if (infoJson?.['data'] != null) {
 			let info = infoJson?.['data'] as UTSJSONObject ?? {} as UTSJSONObject
-			let ingNum = parseInt(info?.['pdid'] as string);
+			// let ingNum = parseInt(info?.['pdid'] as string);
 			//覆盖标识位
 			let overwiteFlag = ref(false);
 			// 先检查是否有任务正在执行中
-			if (info != null && ingNum > 0) {
-				uni.showToast({ title: `当前产品号已有任务在执行中!`, icon: 'error' });
-				return false;
-			}
+			// if (info != null && ingNum > 0) {
+			// 	uni.showToast({ title: `当前产品号已有任务在执行中!`, icon: 'error' });
+			// 	return false;
+			// }
 			// 使用Promise来处理异步流程
 			let deleteDataPromise = new Promise<boolean>((resolve) => {
 				// if (info != null && ingNum == 0) {