自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 vue自动生成路由

vue自动生成路由1. 安装自动生成路由的包npm i vue-auto-router2 -S2.使用import {autoRouter} from 'vue-auto-router2'const router = new VueRouter({...}) const routes = autoRouter({ views: require.context('./pages', true, /.*\.vue$/)})rou

2020-09-19 18:28:42 763

原创 vue js项目升级typescript

vue 老旧项目升级typescript先装包npm i typescript ts-loader @types/webpack-env -D创建tsconfig.json文件{ "compilerOptions": { "sourceMap": true, "strict": true }, "include": ["src/**/*"],}创建类型声明文件index.d.tsdeclare module '*.vue'{ import Vue from 'vue

2020-08-23 00:18:53 1628

原创 moduleFederation 使用

webpack5 moduleFederation 使用简介:在hostApp中暴露要给其他应用使用的模块,其他应用(clientApp)引入hostApp暴露的文件。在clientApp中像使用本地模块一样使用远程模块。HostApp和ClientApp 可互为host/client。即同一个应用,可同时提供/使用远程模块。上代码:依赖 package.json:{ // ... otherConfig devDependencies:{ // ... otherDevDepend

2020-08-21 11:22:24 1297

原创 nodejs中使用redis

1.安装redis地址:https://github.com/MSOpenTech/redis/releases解压到c盘,文件夹重命名为 redis命令行进入到解压后的目录运行.\redis-server.exe 运行后不要关闭这个窗口2.创建nodejs工程使用expressnpm iredis -S创建db/index.js文件,内容:con...

2019-04-28 16:14:58 628

原创 nginx配置websocket代理 http/https

Nginx配置http { ... #other config ... map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 127.0.0.1:8...

2019-02-18 17:37:18 4363

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除