07 2020 档案

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

点击右上角即可分享
微信分享提示