mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
Doc: remove unused script in site
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<template>
|
||||
<zan-doc-block :class="`demo-${component}`">
|
||||
<slot name="highlight"></slot>
|
||||
</zan-doc-block>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'demo-block',
|
||||
|
||||
computed: {
|
||||
component() {
|
||||
return this.$route.path.split('/').pop();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@@ -3,7 +3,6 @@ import VueRouter from 'vue-router';
|
||||
import App from './ExamplesDocsApp';
|
||||
import routes from './router.config';
|
||||
import ZanDoc from 'zan-doc';
|
||||
import DemoBlock from './components/demo-block';
|
||||
|
||||
const isMobile = (function() {
|
||||
var platform = navigator.userAgent.toLowerCase();
|
||||
@@ -13,7 +12,6 @@ const isMobile = (function() {
|
||||
|
||||
Vue.use(VueRouter);
|
||||
Vue.use(ZanDoc);
|
||||
Vue.component(DemoBlock.name, DemoBlock);
|
||||
|
||||
const routesConfig = routes();
|
||||
routesConfig.push({
|
||||
|
Reference in New Issue
Block a user