1 line
3.7 KiB
JSON
1 line
3.7 KiB
JSON
{"remainingRequest":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/babel-loader/lib/index.js!/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/cache-loader/dist/cjs.js??ref--1-0!/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/src/layouts/RouteView.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/src/layouts/RouteView.vue","mtime":1742646402772},{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/babel.config.js","mtime":1742646402652},{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/cache-loader/dist/cjs.js","mtime":1743264595665},{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/babel-loader/lib/index.js","mtime":1743264596348},{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/cache-loader/dist/cjs.js","mtime":1743264595665},{"path":"/Users/shuguang/Desktop/毕设/CodeMaster/CodeMaster/node_modules/vue-loader/lib/index.js","mtime":1743264596512}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICdSb3V0ZVZpZXcnLAogIHByb3BzOiB7CiAgICBrZWVwQWxpdmU6IHsKICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgZGVmYXVsdDogdHJ1ZQogICAgfQogIH0sCiAgZGF0YSgpIHsKICAgIHJldHVybiB7fTsKICB9LAogIHJlbmRlcigpIHsKICAgIGNvbnN0IGggPSBhcmd1bWVudHNbMF07CiAgICBjb25zdCB7CiAgICAgICRyb3V0ZTogewogICAgICAgIG1ldGEKICAgICAgfSwKICAgICAgJHN0b3JlOiB7CiAgICAgICAgZ2V0dGVycwogICAgICB9CiAgICB9ID0gdGhpczsKICAgIGNvbnN0IGluS2VlcCA9IGgoImtlZXAtYWxpdmUiLCBbaCgicm91dGVyLXZpZXciKV0pOwogICAgY29uc3Qgbm90S2VlcCA9IGgoInJvdXRlci12aWV3Iik7CiAgICAvLyDov5nph4zlop7liqDkuoYgbXVsdGlUYWIg55qE5Yik5pat77yM5b2T5byA5ZCv5LqGIG11bHRpVGFiIOaXtgogICAgLy8g5bqU5b2T5YWo6YOo57uE5Lu255qG57yT5a2Y77yM5ZCm5YiZ5Lya5a+86Ie05YiH5o2i6aG16Z2i5ZCO6aG16Z2i6L+Y5Y6f5oiQ5Y6f5aeL54q25oCBCiAgICAvLyDoi6Xnoa7lrp7kuI3pnIDopoHvvIzlj6/mlLnkuLogcmV0dXJuIG1ldGEua2VlcEFsaXZlID8gaW5LZWVwIDogbm90S2VlcAogICAgaWYgKCFnZXR0ZXJzLm11bHRpVGFiICYmICFtZXRhLmtlZXBBbGl2ZSkgewogICAgICByZXR1cm4gbm90S2VlcDsKICAgIH0KICAgIHJldHVybiB0aGlzLmtlZXBBbGl2ZSB8fCBnZXR0ZXJzLm11bHRpVGFiIHx8IG1ldGEua2VlcEFsaXZlID8gaW5LZWVwIDogbm90S2VlcDsKICB9Cn07"},{"version":3,"names":["name","props","keepAlive","type","Boolean","default","data","render","h","arguments","$route","meta","$store","getters","inKeep","notKeep","multiTab"],"sources":["src/layouts/RouteView.vue"],"sourcesContent":["<script>\nexport default {\n name: 'RouteView',\n props: {\n keepAlive: {\n type: Boolean,\n default: true\n }\n },\n data () {\n return {}\n },\n render () {\n const { $route: { meta }, $store: { getters } } = this\n const inKeep = (\n <keep-alive>\n <router-view />\n </keep-alive>\n )\n const notKeep = (\n <router-view />\n )\n // 这里增加了 multiTab 的判断,当开启了 multiTab 时\n // 应当全部组件皆缓存,否则会导致切换页面后页面还原成原始状态\n // 若确实不需要,可改为 return meta.keepAlive ? inKeep : notKeep\n if (!getters.multiTab && !meta.keepAlive) {\n return notKeep\n }\n return this.keepAlive || getters.multiTab || meta.keepAlive ? inKeep : notKeep\n }\n}\n</script>\n"],"mappings":"AACA;EACAA,IAAA;EACAC,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;EACA;EACAC,KAAA;IACA;EACA;EACAC,OAAA;IAAA,MAAAC,CAAA,GAAAC,SAAA;IACA;MAAAC,MAAA;QAAAC;MAAA;MAAAC,MAAA;QAAAC;MAAA;IAAA;IACA,MAAAC,MAAA,GAAAN,CAAA,gBAAAA,CAAA,iBAIA;IACA,MAAAO,OAAA,GAAAP,CAAA,eAEA;IACA;IACA;IACA;IACA,KAAAK,OAAA,CAAAG,QAAA,KAAAL,IAAA,CAAAT,SAAA;MACA,OAAAa,OAAA;IACA;IACA,YAAAb,SAAA,IAAAW,OAAA,CAAAG,QAAA,IAAAL,IAAA,CAAAT,SAAA,GAAAY,MAAA,GAAAC,OAAA;EACA;AACA","ignoreList":[]}]} |