摘要: 文件目录 index.js import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedete 阅读全文
posted @ 2022-06-02 11:15 Janni 阅读(606) 评论(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 阅读(2212) 评论(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 阅读(988) 评论(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 阅读(486) 评论(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 阅读(203) 评论(0) 推荐(0)