mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
docs: update header style
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
<script>
|
||||
import VanDoc from './components';
|
||||
import { config, packageVersion } from 'site-desktop-shared';
|
||||
import { config } from 'site-desktop-shared';
|
||||
import { setLang } from '../common/locales';
|
||||
import { scrollToAnchor } from './utils';
|
||||
|
||||
@@ -28,7 +28,6 @@ export default {
|
||||
const path = location.pathname.replace(/\/index(\.html)?/, '/');
|
||||
|
||||
return {
|
||||
packageVersion,
|
||||
simulator: `${path}mobile.html${location.hash}`,
|
||||
};
|
||||
},
|
||||
@@ -58,11 +57,7 @@ export default {
|
||||
},
|
||||
|
||||
versions() {
|
||||
if (config.site.versions) {
|
||||
return [{ label: packageVersion }, ...config.site.versions];
|
||||
}
|
||||
|
||||
return null;
|
||||
return config.site.versions || null;
|
||||
},
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user