文件名称:keep-alive-chain:Vue前进刷新,后退不刷新(Forward refresh, back not refresh)
文件大小:154KB
文件格式:ZIP
更新时间:2024-06-01 15:00:17
JavaScript
v-keep-alive-chain vue缓存链控制,Vue前进刷新,后退不刷新(Forward refresh, back not refresh) Installation Use $ npm install v-keep-alive-chain // main.js import { mergeBeforeEachHook, VKeepAliveChain } from 'v-keep-alive-chain' Vue.use(VKeepAliveChain, { key: 'cacheTo' // 可选的 默认为cacheTo }) // 如果你没有注册过beforeEach router.beforeEach(mergeBeforeEachHook()) // 如果有注册beforeEach router.beforeEach(mergeBeforeEachHook((to
【文件预览】:
keep-alive-chain-master
----public()
--------index.html(564B)
--------favicon.ico(4KB)
----.browserslistrc(21B)
----.eslintrc.js(381B)
----babel.config.js(73B)
----.npmignore(259B)
----demo()
--------index.html(937B)
--------favicon.ico(4KB)
--------js()
----examples()
--------router()
--------main.js(354B)
--------store()
--------views()
--------components()
--------App.vue(606B)
--------assets()
----keep-alive-chain()
--------index.js(2KB)
----README.md(1KB)
----vue.config.js(559B)
----.gitignore(214B)
----package-lock.json(408KB)
----package.json(1KB)