vue
一个前端小菜鸡
这个作者很懒,什么都没留下…
展开
-
vue dist文件夹的index.html空白
关闭history路径是.‘./’原创 2022-01-06 16:00:40 · 521 阅读 · 0 评论 -
打包警告:asset size limit: The following asset(s) exceed the recommended size limit (244 KiB)
打包警告:解决办法1.打包继续压缩vue.config.js(当然你得先去安装一下)//npm i -D compression-webpack-pluginconst CompressionWebpackPlugin = require('compression-webpack-plugin');config.plugin('compression-webpack-plugin').use(new CompressionWebpackPlugin({ .原创 2022-01-06 15:57:33 · 1716 阅读 · 0 评论 -
echarts 在vue中的用法
预约系统数据统计图原创 2021-09-22 11:21:36 · 65 阅读 · 0 评论 -
vue v-for循环报错(不影响使用),[vue warn]Duplicate keys detected: ‘0’. This may cause an update。
[vue warn]Duplicate keys detected: ‘0’. This may cause an update。原因,2个v-for循环的:key值都是一样的,哪怕你去修改成一个新的数组,只要赋值给key的值一样,就会报错。但是我有不想转成新的数组去循环,所以:(2个数组分别设定不同的key):key=“Number(index+'100”)“和 :key=“Number(index+'1000”)”去进行2个数组索引的区分,就不会报错了,这样索引就不是重0开始的,也就不会报错。.原创 2021-04-01 14:39:25 · 693 阅读 · 0 评论 -
vue-element简单封装验证倒数,调用,清除
function getCodetimer(that,timer,show,count) {that.show = true;const TIME_COUNT = 60;if (!that.timer) {that.count = TIME_COUNT;that.show = true;that.timer = setInterval(() => {console.log(“1”)if (that.count > 0 && that.count <= TI.原创 2020-07-01 18:45:25 · 239 阅读 · 0 评论