随笔分类 -  vue

在Vue中引入fullcalendar
摘要:// 引入步骤 // 1、安装插件 // yarn引入方式 // yarn add @fullcalendar/vue @fullcalendar/core @fullcalendar/daygrid @fullcalendar/interaction @fullcalendar/list @ful 阅读全文

posted @ 2021-03-15 10:05 ㅤㅤㅤㅤㅤㅤ 阅读(1661) 评论(0) 推荐(0)

基于Vue的前端架构
摘要:1.分解需求 技术栈 ·考虑到后续招人和现有人员的技术栈,选择 Vue 作为框架。 ·公司主要业务是 GIS 和 BIM,通常开发一些中大型的系统,所以 vue-router 和 vuex 都是必不可少的。 ·放弃了 Element UI 选择了 Ant Design Vue(最近 Element 阅读全文

posted @ 2021-03-06 15:21 ㅤㅤㅤㅤㅤㅤ 阅读(325) 评论(0) 推荐(0)

Ant DataPIcker 禁用时间和日期的方法
摘要:<template> <div> <a-date-picker style="width: 100%" show-time v-decorator="[ 'nextPmTime', { rules: [ { required: true, message: $t('lang.placeholder. 阅读全文

posted @ 2021-01-27 16:30 ㅤㅤㅤㅤㅤㅤ 阅读(706) 评论(0) 推荐(0)

vue 4.0 vue.config.js配置
摘要:module.exports = { // 部署应用时的基本 URL publicPath: process.env.NODE_ENV 'production' ? './' : '/', // build时构建文件的目录 构建时传入 --no-clean 可关闭该行为 outputDir: 'di 阅读全文

posted @ 2019-12-03 10:25 ㅤㅤㅤㅤㅤㅤ 阅读(3816) 评论(0) 推荐(1)

Vue get请求封装
摘要:// 我是写在Vue的Common.js里面的公共方法 http(config) { return new Promise((resolve,reject) => { axios(config).then((res) => { resolve(res); }).catch((err) => { re 阅读全文

posted @ 2019-08-01 10:38 ㅤㅤㅤㅤㅤㅤ 阅读(505) 评论(0) 推荐(0)

provide + reload 实现vue 不刷新浏览器,页面自刷新
摘要:// 修改vue APP.vue文件 <template> <div id="app"> // 先将router-view 添加v-if或者v-show方法 通过控制显示和隐藏起到刷新页面的效果 <router-view v-if="isRouterAlive" /> </div> <templat 阅读全文

posted @ 2019-07-08 18:56 ㅤㅤㅤㅤㅤㅤ 阅读(362) 评论(0) 推荐(0)

vue 获取服务端session存储到本地
摘要:// 写在vue public index.html<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial 阅读全文

posted @ 2019-07-05 16:09 ㅤㅤㅤㅤㅤㅤ 阅读(10792) 评论(0) 推荐(1)

vue自己封装axios (统一设置请求头等等)
摘要:import axios from "axios"; // 是否允许请求中携带cookie axios.defaults.withCredentials = true; // 请求头 X-GW-NONCE中需要的参数 function uuid() { function S4() { return 阅读全文

posted @ 2019-07-02 10:43 ㅤㅤㅤㅤㅤㅤ 阅读(841) 评论(0) 推荐(1)

导航