摘要:
/* message在同一位置弹出 */ /* reset elementUI message */ .el-message { top: 20px !important; } .el-message:not(:last-child) { visibility: hidden; } /* messa 阅读全文
摘要:
1.electron-vue文件夹下的webpack.renderer.config.js配置文件,你会找到这样一行代码,需要添加白名单! let whiteListedModules = ['vue', 'element-ui'] 阅读全文
摘要:
1.如何在打包之后,把动态配置文件比如【config.json】放在根目录,不被打包到asar文件中 //解决思路,electron可以拷贝静态资源,比如你把config.json放在项目的根目录下,打包时候打包到EXE根目录下即可。 "build": { "productName": "machi 阅读全文
摘要:
1.报错信息没有安装python环境 1 gyp ERR! find Python 2 gyp ERR! find Python Python is not set from command line or npm configuration 3 gyp ERR! find Python Pytho 阅读全文
摘要:
npm i v-charts echarts -S 引入 import VCharts from 'v-charts' Vue.use(VCharts) 后发现报错,后来发现安装echarts版本太高使用4.8.0是没有问题的 npm install echarts@^4.8.0 阅读全文
摘要:
找到源码animate.css修改以下代码 :root { --animate-duration: 1s; --animate-delay: 1s; --animate-repeat: 1; } //修改为 page { --animate-duration: 1s; --animate-delay 阅读全文
摘要:
更改router 的base // biz是二级目录,路由文件改成 const router = new VueRouter({ mode: 'history', // base: process.env.BASE_URL, base: '/biz/', // biz是二级目录 routes }) 阅读全文
摘要:
let arr=[{ title:'1', key:'1', type:0, children:[{ title:'1-1', key:'1-1', type:0, }] },{ title:'2', key:'2', type:0, children:[] },{ title:'3', key:' 阅读全文
摘要:
npm i v-charts echarts -S 1.在main.js中使用报以下错 liquidFill echarts/lib/visual/dataColor 找不到 出现此原因是因为版本问题 npm WARN echarts-liquidfill@2.0.6 requires a peer 阅读全文
摘要:
1.从云数据库随机取出3条记录【这里使用了聚合操作aggregate】 let data = await db.collection('bookList').aggregate().sample({ size:3//随机取出3条记录 }).project({ chapter:false//当前字段不 阅读全文