06 2022 档案

摘要:文件目录 index.js import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedete 阅读全文
posted @ 2022-06-02 11:15 Janni 阅读(527) 评论(0) 推荐(0) 编辑
摘要:// 轮询接口 import { useCallback, useRef, useEffect } from "react"; const sleep = (time) => { return new Promise((resolve) => setTimeout(resolve, time)); 阅读全文
posted @ 2022-06-02 10:59 Janni 阅读(2127) 评论(0) 推荐(0) 编辑
摘要:// 引入ali-oss(没有用到) import axios from "@/plugins/axios"; import moment from "moment"; let OSS = require("ali-oss"); /** * [accessKeyId] {String}:通过阿里云控 阅读全文
posted @ 2022-06-02 10:32 Janni 阅读(913) 评论(0) 推荐(0) 编辑
摘要:import axios from "axios"; import { Modal, message } from "antd"; import i18next from "i18next"; const { CancelToken } = axios; const cancelTokenArr = 阅读全文
posted @ 2022-06-02 10:28 Janni 阅读(479) 评论(0) 推荐(0) 编辑
摘要:axios .post("****", {}, { onUploadProgress: (p) => { p.loaded != p.total && setLoadNum(parseInt(100 * (p.loaded / p.total))); }, onDownloadProgress: ( 阅读全文
posted @ 2022-06-02 10:21 Janni 阅读(197) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示