2021年12月25日
摘要: 报错:nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory) 解决: 1. 执行:nginx -c /etc/nginx/nginx.conf /etc/nginx/nginx.conf 是 ng 配置 阅读全文
posted @ 2021-12-25 17:41 W1N9s 阅读(101) 评论(0) 推荐(0) 编辑
  2021年11月27日
摘要: 1. 风格指南 2. eslint-plugin-vue 阅读全文
posted @ 2021-11-27 13:46 W1N9s 阅读(31) 评论(0) 推荐(0) 编辑
摘要: $colorMain: #008cba; // 主色值 $colorHover: darken($colorMain, 10%); $colorBgGray: lighten(grayscale($colorMain), 40%); $colorBorder: lighten(grayscale($ 阅读全文
posted @ 2021-11-27 01:16 W1N9s 阅读(63) 评论(0) 推荐(0) 编辑
  2021年9月17日
摘要: Windows electron@11.0.0 失效原因: browserWindow.once('ready-to-show', () => { browserWindow.show(); browserWindow.maximize(); // 最大化显示,先 show 再最大化,否则透明背景无 阅读全文
posted @ 2021-09-17 23:57 W1N9s 阅读(1889) 评论(0) 推荐(0) 编辑
  2021年9月12日
摘要: 项目情况:qiankun 搭建的 vue 应用 问题: 1. 使用了 keep-alive,vue 不同路由使用同一个组件,切换路由没触发 activated 钩子 2. 不同的 params,不触发 activated 钩子 解决方法:router-view 上添加 key <router-vie 阅读全文
posted @ 2021-09-12 10:59 W1N9s 阅读(952) 评论(0) 推荐(0) 编辑
  2021年8月29日
摘要: css 设置: div { pointer-events: none; } 阅读全文
posted @ 2021-08-29 14:52 W1N9s 阅读(305) 评论(0) 推荐(0) 编辑
  2021年8月10日
摘要: 传数组参数:xhr.send(JSON.stringify(Array)) const xhr = new XMLHttpRequest(); xhr.open('POST', '/test', true); // 设置请求头要放在 open 和 send 之间 xhr.setRequestHead 阅读全文
posted @ 2021-08-10 16:04 W1N9s 阅读(3183) 评论(0) 推荐(0) 编辑
摘要: 下载 excel 文件,无法打开 原因:responseType: 'blob' 配置不正确 axios({ url: '/test', method: 'post', responseType: 'blob', data: {}, haeders: {}, }) .then((res) => { 阅读全文
posted @ 2021-08-10 15:58 W1N9s 阅读(1096) 评论(0) 推荐(0) 编辑
  2021年7月13日
摘要: 1. 打开项目目录 2. 在文件目录路径上输入 cmd,打开 cmd 窗口 3. 在 cmd 输入 rmdir /s/q node_modules 命令,回车。等待删除完成再关闭 cmd 窗口 删除速度相比资源管理器删除速度快很多。 阅读全文
posted @ 2021-07-13 16:48 W1N9s 阅读(391) 评论(0) 推荐(0) 编辑
  2021年6月26日
摘要: 1 // In the renderer process. 2 3 import { desktopCapturer } from 'electron'; 4 import { screen } from '@electron/remote'; 5 6 export async function c 阅读全文
posted @ 2021-06-26 17:22 W1N9s 阅读(2057) 评论(0) 推荐(0) 编辑