Commit fbb84ee6 authored by gaobowen's avatar gaobowen

add screenshot

parent 997b8dfa
<template>
<div class="comp-rightpanel">
rightpanel
<router-view name="panel"></router-view>
</div>
</template>
......
<template>
<div>
screenshotPanel
</div>
</template>
<script>
export default {
data() {
return {}
},
created() {},
mounted() {}
}
</script>
<style></style>
......@@ -4,6 +4,7 @@
<router-link to="/about">About</router-link>
<router-link to="/bao1">bao1</router-link>
<router-link to="/bao2">bao2</router-link>
<router-link to="/screenshot">screenshot</router-link>
</div>
</template>
......
import Vue from 'vue'
import VueRouter from 'vue-router'
import Bao3 from '../views/bao3.vue'
import Screenshot from '../views/screenshot.vue'
import screenshotPanel from '../components/rightPanel/screenshotPanel.vue'
Vue.use(VueRouter)
......@@ -27,6 +29,13 @@ const routes = [
path: '/bao2',
name: 'Bao2',
component: () => import(/* webpackChunkName: "bao2" */ '../views/bao2.vue')
},
{
path: '/screenshot',
components: {
default: Screenshot,
panel: screenshotPanel
}
}
]
......
<template>
<div class="screenshot">screenshot view</div>
</template>
<script>
export default {
name: 'Screenshot',
data() {
return {}
},
created() {},
mounted() {}
}
</script>
<style lang="scss" scoped>
.screenshot {
width: 100%;
height: 100%;
margin: 30px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment