mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
docs: remove vant-demo pages (#5084)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import docConfig from './doc.config';
|
||||
import DemoList from './components/DemoList';
|
||||
import DemoPages from './components/DemoPages';
|
||||
import { demoWrapper } from './mobile/demo-common';
|
||||
import { initIframeRouter } from './utils/iframe-router';
|
||||
|
||||
@@ -35,9 +34,7 @@ const registerRoute = ({ mobile, componentMap }) => {
|
||||
path = path.replace('/', '');
|
||||
|
||||
let component;
|
||||
if (path === 'demo') {
|
||||
component = DemoPages;
|
||||
} else if (mobile) {
|
||||
if (mobile) {
|
||||
const module = componentMap[`./${path}/demo/index.vue`];
|
||||
|
||||
if (module) {
|
||||
|
Reference in New Issue
Block a user