自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 问答 (1)
  • 收藏
  • 关注

原创 前端需要通过认证去拿后端返回的图片

图片转成blob,File

2022-06-09 10:29:17 191

原创 文件转成binary流

var reader = new FileReader(); reader.readAsArrayBuffer(file) reader.onload = function(e) { //如果文件需要参数 //const formdata=new FormData() //formdata.append('file',e.target.result) axios.post(url, e.target.result, { headers: .

2022-05-11 16:59:27 1599

原创 带token的文件下载

var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.responseType = "blob"; xhr.setRequestHeader('Authorization', 'Bearer ' + user_info.access_token) xhr.onload = function () { if (this.status === 200) { var blob =.

2022-05-11 09:55:35 585

原创 下载文件流

axios({ method: 'get', url: `/api/backend/file_download/${attachments_info[i].attachment_id}`, headers: { 'Content-Type': "application/json;charset=UTF-8", }, responseType: "blob" }).then(res =&...

2022-03-29 15:23:05 892

原创 antdTable动态合并单元格

import React from 'react'import { Table, Card, Row, Col, } from 'antd'import './index.css'function mergeCells(text, data, key, index) { if (index !== 0 && text === data[index - 1][key]) { return 0 } let rowSpan = 1 for (let i = i

2022-03-04 10:50:14 1095

原创 antdpro4+JS设置服务器菜单

src/moaels/menu.jsimport { getMenuData } from '@/services/menu'import { loginOut } from '@/services/api'const MenuModel= { namespace: 'menu', state: { menuData: [], loading: true, }, effects: { *fetchMenu(_, { call, put }) { c

2021-04-16 12:20:18 375

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除