| | |
| | | import router from "@/router/router"; |
| | | import { getSessionStorage } from "@/utils/utis"; |
| | | import { signatureGenerate } from "@/utils/signatureUtil"; |
| | | import urlKyc from "./urlKyc"; |
| | | axios.defaults.headers.post["Content-Type"] = |
| | | "application/x-www-form-urlencoded"; |
| | | |
| | |
| | | // 拦截请求 |
| | | request.interceptors.request.use( |
| | | (config) => { |
| | | const arr = urlKyc.filter((item) => item === config.url); |
| | | if (arr.length !== 0 && store.state.user.kyc !== 2) { |
| | | return Toast.fail(i18n.t("请先实名认证!")); |
| | | } |
| | | if (config.loading) { |
| | | Toast.loading({ duration: 0, forbidClick: true }); |
| | | } |
| | | |
| | | |
| | | if (config.url !== "api/syspara!getSyspara.action") { |
| | | if ( |