modify(entry)

This commit is contained in:
songwanli2025@163.com 2020-03-04 14:42:58 +08:00
parent a076e8a36c
commit 066c4fc35e
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ export default {
return process.env.NODE_ENV return process.env.NODE_ENV
}, },
items () { items () {
return menuOptions(this.lang, this, this.mode) return menuOptions(this.lang, this)
}, },
flattenedItems () { flattenedItems () {
const flattenedItems = [] const flattenedItems = []

View File

@ -42,7 +42,7 @@ const appendDebugDemos = (item, mode) => {
} else return [] } else return []
} }
export default function (locale, instance, mode) { export default function (locale, instance) {
if (locale === 'zh-CN') { if (locale === 'zh-CN') {
if (env === 'development') { if (env === 'development') {
return [ return [
@ -1461,7 +1461,7 @@ export default function (locale, instance, mode) {
path: `/${instance.lang}/${instance.theme}/${instance.mode}/doc` + '/n-select-debug' path: `/${instance.lang}/${instance.theme}/${instance.mode}/doc` + '/n-select-debug'
} }
] ]
}, mode) }, instance.mode)
] ]
} else { } else {
return [ return [
@ -1846,7 +1846,7 @@ export default function (locale, instance, mode) {
path: `/${instance.lang}/${instance.theme}/doc` + '/n-select-debug' path: `/${instance.lang}/${instance.theme}/doc` + '/n-select-debug'
} }
] ]
}, mode) }, instance.mode)
] ]
} }
} }