随笔分类 -  Vue

摘要:let OSS = require('ali-oss'); let config = { region: 'oss-cn-hangzhou', //你的Region 注意 这个只要 空间名 不要 http:// 和 .aliyunoss.com !! //secure: true, accessKe 阅读全文
posted @ 2020-07-13 16:24 艺洁 阅读(926) 评论(0) 推荐(0)
摘要:node.js下载安装 命令提示符中输入node -v 或npm -v查看版本 之后输入npm install -g @vue/cli 安装完成后 cd 文件夹或到文件夹目录shift+右键进入命令工具 npm install 如果报错 请验证是否设置path环境变量 设置完成后还是不行的话 请重启 阅读全文
posted @ 2019-11-21 11:48 艺洁 阅读(142) 评论(0) 推荐(0)
摘要:动态生成Excel文件、目录 @GetMapping(value = "/downloadZip") public void downloadZips(HttpServletRequest request,HttpServletResponse response,Long taskId) throw 阅读全文
posted @ 2019-11-19 15:49 艺洁 阅读(3148) 评论(0) 推荐(0)
摘要:assets:在项目编译的过程中会被webpack处理解析为模块依赖,只支持相对路径的形式,如< img src=”./logo.png”>和background:url(./logo.png),”./logo.png”是相对资源路径,将有webpack解析为模块依赖 用js动态加载assets或者 阅读全文
posted @ 2019-10-30 14:15 艺洁 阅读(3188) 评论(0) 推荐(0)
摘要:用 axios response 拦截器,我们统一处理所有请求成功之后响应过来的数据,然后对特殊数据进行处理,其他的正常分发。 安装axios :npm i axios 在 main.js 注册 axios // http 请求拦截器axios.interceptors.request.use( c 阅读全文
posted @ 2019-10-25 10:13 艺洁 阅读(1849) 评论(0) 推荐(0)
摘要:一:<router-link v-if="item" class="g-color3" target="_blank" :to="{ name: 'partyactivitydetail', query: { id: item.id } }" > 接收:this.$route.query.id 路由 阅读全文
posted @ 2019-10-10 09:49 艺洁 阅读(182) 评论(0) 推荐(0)
摘要:导入vue路由组件 import Vue from "vue";import Router from "vue-router";Vue.use(Router); 定义路由 export const routers =[ { path: "/group", component: () => impor 阅读全文
posted @ 2019-10-10 09:42 艺洁 阅读(206) 评论(0) 推荐(0)
摘要:安装echarts依赖 let echarts = require("echarts/lib/echarts");// 引入柱状图组件require("echarts/lib/chart/bar");// 引入饼状图组件require("echarts/lib/chart/pie");require 阅读全文
posted @ 2019-09-30 17:06 艺洁 阅读(198) 评论(0) 推荐(0)
摘要:组件中定义事件 getServiceActive(index,text) { this.active_type = index; if(text=="全部") { text=null; } this.type_text=text; this.$emit("ListenChildEvent",{"ty 阅读全文
posted @ 2019-09-29 10:03 艺洁 阅读(150) 评论(0) 推荐(0)