07 2020 档案
摘要:vue.config.js中 proxy: { '/api': { target: 'http://192.168.124.31:8085/', changeOrigin: true, ws: true, pathRewrite: { '^/api': '/' } }, '/api/tmAuthAc
阅读全文
摘要:使用nextTick解决 //关闭弹框 handleClose(formName) { this.addDialogVisible = false; this.$nextTick(() => { this.$refs[formName].resetFields(); }); },
阅读全文
摘要:利用meta路由元信息,通过this.$route.matched来获取 <!--面包屑导航--> <template> <div class="breadcrumb"> <div class="breadcrumb-item"> <el-breadcrumb separator-class="el
阅读全文
摘要:引入 Element 时,可以传入一个全局配置对象。该对象目前支持 size 与 zIndex 字段 Vue.use(ElementUI, { size: 'small', zIndex: 3000 }) import Vue from 'vue' import ElementUI from 'el
阅读全文
摘要:<div class="header-user-con"> <!-- 全屏显示 --> <div class="btn-fullscreen" @click="handleFullScreen"> <el-tooltip effect="dark" :content="fullscreen?`取消全
阅读全文
摘要:之前的项目架子element是按需引入的,新项目中打算全局引入整个element。(虽然前者会减小项目体积) 在main.js中引入element后出现以下报错信息,和babel-plugin-component有关。在此记录一下 先是把babel.config.js里面配置注释了,还是报错 最后把
阅读全文