Skip to content

Commit 468c40a

Browse files
author
jack
committed
修改组件你
1 parent f0b93ac commit 468c40a

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

src/App.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
<template>
22
<div id="app">
33
<div id="nav">
4-
<router-link to="/">Home</router-link> |
5-
<router-link to="/about">About</router-link>
4+
<!-- <router-link to="/">Home</router-link> | -->
5+
<!-- <router-link to="/about">About</router-link> -->
6+
<Home/>
67
</div>
7-
<router-view/>
8+
<!-- <router-view/> -->
89
</div>
910
</template>
10-
11+
<script>
12+
import Home from './views/Home.vue'
13+
export default {
14+
name: 'App',
15+
components: {
16+
Home
17+
}
18+
}
19+
</script>
1120
<style>
1221
#app {
1322
font-family: Avenir, Helvetica, Arial, sans-serif;

vue.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* @Description :
3+
* @Date : 2022-01-20 00:50:27 +0800
4+
* @Author : JackChou
5+
* @LastEditTime: 2022-01-20 00:50:28 +0800
6+
* @LastEditors : JackChou
7+
*/
8+
module.exports ={
9+
publicPath: './',
10+
}

0 commit comments

Comments
 (0)