摘要: //浏览器种显示源码 打开 config/index.js 并找到 devtool property。将其更新为: 如果你使用的是 Vue CLI 2,请设置并更新 config/index.js 内的 devtool property: devtool: 'source-map', 如果你使用的是 阅读全文
posted @ 2021-06-08 20:25 coffeemil 阅读(182) 评论(0) 推荐(0) 编辑
摘要: App.vue //cache缓存永久缓存的变量 <script> export default { name: "App", created() { this.persisted(); }, methods: {//持久化 persisted() { if (sessionStorage.getI 阅读全文
posted @ 2021-06-08 01:54 coffeemil 阅读(63) 评论(0) 推荐(0) 编辑
摘要: store/modules/cache.js import { listData } from '@/api/system/dict/data.js' const state = { dictCache: {}, } const mutations = { UPDATE_DICTS(state, p 阅读全文
posted @ 2021-06-08 01:24 coffeemil 阅读(863) 评论(0) 推荐(0) 编辑