1.0.6 • Published 1 year ago

@beige/quick-vue-history v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Quick vue history

介绍

快速切换vue-router的历史记录,采用LRU + Indexdb存储方案

1. 安装

npm install @beige/quick-vue-history --save

2. 引入

import router from '@/you-vue-router' // 你的vue-router配置
import { createQuickHistory } from '@beige/quick-vue-history'
import '@beige/quick-vue-history/dist/quick-vue-history.css'

createQuickHistory(router, options)

3. options配置

参数类型默认值说明
storeNameString'QUICK_VUE_HISTORY'存储的键名
excludeArray[]需要过滤的路由path列表,如:'/login'
maxLengthNumber10历史缓存最大长度, 0表示无限制
compressLimitNumber3.5压缩图片文件大于此值时压缩
compressRateNumber0.7压缩率

4. 使用

Mac 通过快捷键 Command + k 显示历史记录

windows 通过快捷键 win + k 显示历史记录

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago