2021年12月22日
摘要:
1.安装compression-webpack-plugin npm install --save-dev compression-webpack-plugin 2.vue.config.js配置 const CompressionPlugin = require("compression-webp
阅读全文
posted @ 2021-12-22 10:21
写最骚的代码
阅读(1678)
推荐(0)
2021年12月14日
摘要:
/** * @example * v-input-float="{ limit: 1, min: 0, max: 100 }" 只允许输入一位小数 * @param limit 小数位数 * @param min 最小值 * @param max 最大值 * * @since 2021.12.14(
阅读全文
posted @ 2021-12-14 17:34
写最骚的代码
阅读(7382)
推荐(1)
2021年11月2日
摘要:
1.安装 npm install babel-polyfill --savenpm install es6-promise --savenpm install url-search-params-polyfill --save 2.在main.js文件最上面加 import "babel-polyf
阅读全文
posted @ 2021-11-02 10:19
写最骚的代码
阅读(882)
推荐(0)
2021年8月10日
摘要:
在根目录vue.config.js文件中,添加以下代码 module.exports = { pluginOptions: { electronBuilder: { nodeIntegration: true } } }
阅读全文
posted @ 2021-08-10 17:07
写最骚的代码
阅读(5598)
推荐(0)
2021年8月9日
摘要:
主要用到的是一款基于 VUE-CLI 3.0 + 的 Electron 插件式开发工具:electron-builder 步骤: (注:1、macOs下,命令前尽量加上sudo,有些命令需要权限。2、安装源在安装electron相关依赖的时候,要使用官方源,不可使用淘宝镜像。) 切换官方源命令: y
阅读全文
posted @ 2021-08-09 11:04
写最骚的代码
阅读(559)
推荐(0)
2021年7月27日
摘要:
let reader = new FileReader(); reader.readAsDataURL(file);//file是选择的本地文件图片 reader.onload = () => { const content = encodeURIComponent(reader.result);/
阅读全文
posted @ 2021-07-27 09:44
写最骚的代码
阅读(503)
推荐(0)
2021年7月2日
摘要:
//通过组件key属性实现重新渲染 <template> <NoticeCollectionKey :key="componentKey"/></template> <script> //原来的页面定义为一个组件import进来 import NoticeCollectionKey from "./
阅读全文
posted @ 2021-07-02 15:35
写最骚的代码
阅读(1012)
推荐(0)
2021年5月10日
摘要:
import axios from 'axios'; import { Message } from 'element-ui'; import store from '@/store'; import config from '@/config'; // import { stringifyParm
阅读全文
posted @ 2021-05-10 11:05
写最骚的代码
阅读(147)
推荐(0)
2021年3月26日
摘要:
1.在官网找到对应的版本点击下载 2. 右键或者双指点击把整个链接复制出来放到到地址栏上。 例如:https://az764295.vo.msecnd.net/stable/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/VSCode-darwin-arm64.zi
阅读全文
posted @ 2021-03-26 20:22
写最骚的代码
阅读(137)
推荐(0)
2021年3月9日
摘要:
sudo npm cache clean -f //清除nodejs的cache: sudo npm install -g n //使用npm安装n模块 npm view node versions // node所有版本 sudo n latest // 升级到最新版本 sudo n stable
阅读全文
posted @ 2021-03-09 15:26
写最骚的代码
阅读(246)
推荐(0)