@alauda/doom 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -165,7 +165,6 @@ export const autoSidebarPlugin = ({ excludeRoutes, collapsed, } = {}) => {
|
|
|
165
165
|
const root = config.root;
|
|
166
166
|
const langs = config.themeConfig.locales.map((locale) => locale.lang);
|
|
167
167
|
const hasLocales = langs.length > 0;
|
|
168
|
-
const hasLang = Boolean(config.lang);
|
|
169
168
|
const versions = config.multiVersion?.versions || [];
|
|
170
169
|
const defaultLang = config.lang || '';
|
|
171
170
|
const { default: defaultVersion = '' } = config.multiVersion || {};
|
|
@@ -178,9 +177,6 @@ export const autoSidebarPlugin = ({ excludeRoutes, collapsed, } = {}) => {
|
|
|
178
177
|
}));
|
|
179
178
|
}
|
|
180
179
|
else {
|
|
181
|
-
if (hasLang) {
|
|
182
|
-
return config;
|
|
183
|
-
}
|
|
184
180
|
const walks = versions.length
|
|
185
181
|
? await Promise.all(versions.map((version) => {
|
|
186
182
|
const routePrefix = addTrailingSlash(version === defaultVersion ? '' : `/${version}`);
|