摘要:
先加载axios import axios from 'axios'; import Vue from 'vue'; import Qs from 'qs'; import urls from './url' import { Message } from 'element-ui'; //用来设置接 阅读全文
posted @ 2023-09-22 14:53
Y~~~
阅读(46)
评论(0)
推荐(0)
摘要:
beforeUploadFile(file) { const formData = new FormData(); formData.append("files", file); let params = { data: formData } uploadFile(params).then(res 阅读全文
posted @ 2023-09-22 14:43
Y~~~
阅读(7)
评论(0)
推荐(0)
摘要:
import React, { Component } from "react"; import * as echarts from 'echarts'; class Chart1 extends Component { constructor(props) { super(props); this 阅读全文
posted @ 2023-09-22 14:33
Y~~~
阅读(32)
评论(0)
推荐(0)
摘要:
import axios from 'axios' const isIE = () => navigator.userAgent.toLowerCase().indexOf('trident') > -1; //判断是否为IE浏览器 // 文件下载 export async function dow 阅读全文
posted @ 2023-09-22 14:28
Y~~~
阅读(18)
评论(0)
推荐(0)
摘要:
/** * request 网络请求工具 * 更详细的 api 文档: https://github.com/umijs/umi-request */ import { extend } from 'umi-request'; import { notification, message } fr 阅读全文
posted @ 2023-09-22 14:22
Y~~~
阅读(608)
评论(0)
推荐(0)
摘要:
搭建Umi4框架项目react语法 有simple app 和 ant design pro 后者属于umi max无需下载@umijs/plugins 直接在umirc.ts中注册 前者npm install @umijs/plugins 并在.umirc.ts中完成注册,antd不需要注册,np 阅读全文
posted @ 2023-09-22 13:51
Y~~~
阅读(485)
评论(0)
推荐(0)