![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
文章平均质量分 50
大大大大雪哥
一个爱学习的柯基
展开
-
vue全局挂载组件 当做标签使用
一 创建组件title1.vue统一导出二 plugin.jsimportTitle1from'@/components/business/title1'importTitle2from'@/components/business/title2'importTitle3from'@/components/business/title3'importNumberChainfrom'@/components/business/numberChain'im...原创 2021-05-09 22:37:32 · 397 阅读 · 0 评论 -
echarts 饼状图legend 显示比例
formatter:function(name){//获取legend显示内容letdata=option.series[0].data;lettotal=0;lettarValue=0;for(leti=0,l=data.length;i<l;i++){total+=data...原创 2021-05-09 22:36:07 · 414 阅读 · 0 评论 -
three.js 基础展示
npm i three -------------------------------------------- <template> <div id="t-container"> <div class="title">基础示例</div> </div> </template> <script> import * as THREE from 'three' let camera, scen...原创 2021-05-09 22:32:28 · 139 阅读 · 0 评论 -
其他页面调用接口后刷新当前页面
根组件<template> <div id="app"> <router-view v-if="isRouterAlive"></router-view> </div></template><script>export default { name: 'App', provide (){ return { reload:this.reload } }...原创 2021-03-10 22:18:06 · 646 阅读 · 0 评论 -
基于ElementUI自定义上传附件
<el-upload style="display: inline-block" :limit="6" class="upload-demo" action="#" ref="upload" multiple :file-list="fileList" :on-change="handleChange" :on-exceed="handleExceed" :before-upload="beforeAvatarUpload" :http-request="uploadS...原创 2021-03-10 22:05:19 · 480 阅读 · 0 评论 -
在后端没有定义数据的格式的情况下附件下载,定义了数据流的格式请看下一篇文档
// 附件下载filesLoad(item) {console.log(item)attachDownload({ id: item.id }).then((res) => {console.log(res)if (res) {let blob = new Blob([res.data], { type: ‘application/vnd.ms-excel;charset=utf-8’ })if (window.navigator.msSaveBlob) {window, naviga原创 2021-03-10 21:46:19 · 89 阅读 · 1 评论 -
axios结合ElementUi结合封装
import { getCookie, delCookie } from ‘@/utils/cookie’import router from ‘@/router’import store from ‘@/store/index’import { Message, MessageBox } from ‘element-ui’const axios = require(‘axios’)axios.default.withCredentials = true// const url = ‘http:原创 2021-02-13 19:52:34 · 216 阅读 · 1 评论 -
eslint配置
//https://eslint.org/docs/user-guide/configuringmodule.exports={root:true,parserOptions:{ecmaFeatures:{experimentalObjectRestSpread:true},ecmaVersion:6,sourceType:'module'...原创 2021-02-06 15:02:35 · 131 阅读 · 1 评论 -
vue.config.js 配置
constBundleAnalyzerPlugin=require('webpack-bundle-analyzer').BundleAnalyzerPluginconstpath=require('path')constwebpack=require('webpack')//constAddAssetHtmlPlugin=require('add-asset-html-webpack-plugin')constos=require('os')//con...原创 2021-02-06 15:01:09 · 700 阅读 · 0 评论 -
格式化时间
exportfunctionformatTime(date,fmt='yyyy-MM-dd'){if(!date)returndateif(typeofdate==='number'&&!isNaN(date)){date=newDate(date)}varo={'M+':date.getMonth()+1,'d+':date....原创 2020-12-22 16:46:01 · 112 阅读 · 0 评论 -
Cookie的创建和获取 删除
Cookie 是一些数据, 存储于你电脑上的文本文件中。当 web 服务器向浏览器发送 web 页面时,在连接关闭后,服务端不会记录用户的信息。Cookie 的作用就是用于解决 "如何记录客户端的用户信息":当用户访问 web 页面时,他的名字可以记录在 cookie 中。 在用户下一次访问该页面时,可以在 cookie 中读取用户访问记录。Cookie 以名/值对形式存储,如下所示:username=LimisJavaScript 可以使用document.cookie属性来创..原创 2020-12-21 11:44:31 · 317 阅读 · 0 评论