mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(service-layout): watch route causing enumerate keys
This commit is contained in:
parent
2981840442
commit
3bd9b08beb
@ -68,8 +68,8 @@ export default defineComponent({
|
||||
})
|
||||
if (route) {
|
||||
syncValue(route.path)
|
||||
watch(route, (to) => {
|
||||
syncValue(to.path)
|
||||
watch(toRef(route, 'path'), (path) => {
|
||||
syncValue(path)
|
||||
})
|
||||
}
|
||||
function doUpdateCollapsed (value: boolean): void {
|
||||
|
@ -23,14 +23,6 @@ module.exports = {
|
||||
__DEV__: process.env.NODE_ENV !== 'production'
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'highlight.js/lib/core',
|
||||
'highlight.js/lib/languages/cpp',
|
||||
'highlight.js/lib/languages/javascript',
|
||||
'highlight.js/lib/languages/python',
|
||||
'@vicons/fluent/Compose16Regular.js',
|
||||
'date-fns/locale'
|
||||
],
|
||||
exclude: ['__INDEX__']
|
||||
},
|
||||
build: {
|
||||
|
Loading…
Reference in New Issue
Block a user