会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
W1N9s
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2021年12月25日
Nginx 重启报错
摘要: 报错: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
阅读(115)
评论(0)
推荐(0)
2021年11月27日
Vue 项目开发参考
摘要: 1. 风格指南 2. eslint-plugin-vue
阅读全文
posted @ 2021-11-27 13:46 W1N9s
阅读(44)
评论(0)
推荐(0)
如何用 sass 定义网站配色
摘要: $colorMain: #008cba; // 主色值 $colorHover: darken($colorMain, 10%); $colorBgGray: lighten(grayscale($colorMain), 40%); $colorBorder: lighten(grayscale($
阅读全文
posted @ 2021-11-27 01:16 W1N9s
阅读(72)
评论(0)
推荐(0)
2021年9月17日
设置 electron 透明背景,electron 设置透明背景无效
摘要: Windows electron@11.0.0 失效原因: browserWindow.once('ready-to-show', () => { browserWindow.show(); browserWindow.maximize(); // 最大化显示,先 show 再最大化,否则透明背景无
阅读全文
posted @ 2021-09-17 23:57 W1N9s
阅读(2068)
评论(0)
推荐(0)
2021年9月12日
qiankun 微应用,切换页面时 vue 组件钩子函数没触发(vue 不同路由使用同一个组件)
摘要: 项目情况:qiankun 搭建的 vue 应用 问题: 1. 使用了 keep-alive,vue 不同路由使用同一个组件,切换路由没触发 activated 钩子 2. 不同的 params,不触发 activated 钩子 解决方法:router-view 上添加 key <router-vie
阅读全文
posted @ 2021-09-12 10:59 W1N9s
阅读(1012)
评论(0)
推荐(0)
2021年8月29日
css 元素定位后不遮挡后边的元素
摘要: css 设置: div { pointer-events: none; }
阅读全文
posted @ 2021-08-29 14:52 W1N9s
阅读(316)
评论(0)
推荐(0)
2021年8月10日
XMLHttpRequest POST 传数组参数
摘要: 传数组参数: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
阅读(3198)
评论(0)
推荐(0)
axios下载文件,文件损坏,无法打开
摘要: 下载 excel 文件,无法打开 原因:responseType: 'blob' 配置不正确 axios({ url: '/test', method: 'post', responseType: 'blob', data: {}, haeders: {}, }) .then((res) => {
阅读全文
posted @ 2021-08-10 15:58 W1N9s
阅读(1125)
评论(0)
推荐(0)
2021年7月13日
如何快速删除 node_modules
摘要: 1. 打开项目目录 2. 在文件目录路径上输入 cmd,打开 cmd 窗口 3. 在 cmd 输入 rmdir /s/q node_modules 命令,回车。等待删除完成再关闭 cmd 窗口 删除速度相比资源管理器删除速度快很多。
阅读全文
posted @ 2021-07-13 16:48 W1N9s
阅读(397)
评论(0)
推荐(0)
2021年6月26日
electron 截图,两种方式:desktopCapturer.getSources 与 navigator.mediaDevices.getUserMedia
摘要: 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
阅读(2317)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页