fix
This commit is contained in:
@@ -23,6 +23,12 @@ const routes: Array<RouteRecordRaw> = [
|
||||
meta:{enter:'all',},
|
||||
component: _import('LoginPage')
|
||||
},
|
||||
{
|
||||
path: '/test',
|
||||
name: 'test1',
|
||||
meta:{enter:'all',},
|
||||
component: _import('test')
|
||||
},
|
||||
{
|
||||
path: '/register',
|
||||
name: 'register',
|
||||
|
||||
22
src/views/test.vue
Normal file
22
src/views/test.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div class='box'>
|
||||
<tesst></tesst>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent} from "vue";
|
||||
import tesst from "@/component/Canvas/test.vue";
|
||||
export default defineComponent({
|
||||
name: "test",
|
||||
components:{
|
||||
tesst
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang='less' scoped>
|
||||
.box {
|
||||
border: 1px solid #f00;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user