随笔 - 45,  文章 - 0,  评论 - 2,  阅读 - 30144
06 2021 档案
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 阅读(2181) 评论(0) 推荐(0) 编辑
解决 electron 无法加载 vue-devtools
摘要:1. BrowserWindow.addDevToolsExtension(path) 在 Electron 13 版本已移除,采用 session.defaultSession.loadExtension(path) 方式加载 2. 配置 import { session } from 'elec 阅读全文
posted @ 2021-06-20 13:25 W1N9s 阅读(2202) 评论(0) 推荐(0) 编辑
eggjs 配置 middleware
摘要:1. 方式一:在路由里配置 - router.js module.exports = (app) => { const { router, controller, io } = app; const userAuth = app.middleware.userauth(app); router.ge 阅读全文
posted @ 2021-06-14 16:57 W1N9s 阅读(345) 评论(0) 推荐(0) 编辑
Windows10 没 hosts 文件
摘要:1. win+r 输入 cmd,回车 2. 输入:for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P 回车 3. C:\Win 阅读全文
posted @ 2021-06-05 12:19 W1N9s 阅读(152) 评论(0) 推荐(0) 编辑
刷新页面时保存 vuex 数据
摘要:1. 创建 function // 刷新页面时恢复 vuex state 数据 export function recoverStoreState(store) { // 刷新页面时存储 state window.addEventListener('beforeunload', () => { lo 阅读全文
posted @ 2021-06-05 11:52 W1N9s 阅读(239) 评论(0) 推荐(0) 编辑
禁用谷歌 chrome 阅读清单
摘要:1. chrome 打开 chrome://flags/ 2. 在搜索框输入 Reading List,回车 3. 在 Reading List 的下拉选择中选择 Disabled 4. 重启浏览器 Relaunch 阅读全文
posted @ 2021-06-03 11:54 W1N9s 阅读(99) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示