学习vue-router组件!!!
This commit is contained in:
25
入门/cli/hello-router/src/components/功能页面/demo-1.vue
Normal file
25
入门/cli/hello-router/src/components/功能页面/demo-1.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
* @Author: Kane
|
||||
* @Date: 2022-11-24 01:18:18
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-11-24 01:21:20
|
||||
* @FilePath: \hello-router\src\components\功能页面\demo-1.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
-->
|
||||
<template>
|
||||
<h1>{{ title }}</h1>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "demo-1",
|
||||
data() {
|
||||
return {
|
||||
title: "测试router-1",
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
25
入门/cli/hello-router/src/components/功能页面/demo-2.vue
Normal file
25
入门/cli/hello-router/src/components/功能页面/demo-2.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
* @Author: Kane
|
||||
* @Date: 2022-11-24 01:20:58
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-11-24 01:22:30
|
||||
* @FilePath: \hello-router\src\components\功能页面\demo-2.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
-->
|
||||
<template>
|
||||
<h1>{{ title }}</h1>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "demo-2",
|
||||
data() {
|
||||
return {
|
||||
title: "测试页面-2",
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
Reference in New Issue
Block a user