自定义博客皮肤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 -S 2.使用 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 933

原创 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.ts declare module '*.vue'{ import Vue from 'vue

2020-08-23 00:18:53 1797

原创 moduleFederation 使用

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

2020-08-21 11:22:24 1522

原创 nodejs中使用redis

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

2019-04-28 16:14:58 717

原创 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 4694

空空如也

空空如也

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

TA关注的人

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