Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
2c1bf08c
Commit
2c1bf08c
authored
Aug 09, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial
parent
058c4e67
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
67 deletions
+14
-67
fns_backend
fns_backend
+1
-0
App.vue
src/App.vue
+0
-23
index.ts
src/router/index.ts
+13
-13
About.vue
src/views/About.vue
+0
-13
Home.vue
src/views/Home.vue
+0
-18
No files found.
fns_backend
@
c84a2ba9
Subproject commit c84a2ba954da258491acb4cdada0c7f8513510eb
src/App.vue
View file @
2c1bf08c
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<div
id=
"nav"
>
<router-link
to=
"/"
>
Home
</router-link>
|
<router-link
to=
"/about"
>
About
</router-link>
</div>
<router-view/>
<router-view/>
</div>
</div>
</
template
>
</
template
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
#nav {
padding: 30px;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
</
style
>
</
style
>
src/router/index.ts
View file @
2c1bf08c
...
@@ -5,19 +5,19 @@ import Home from '../views/Home.vue'
...
@@ -5,19 +5,19 @@ import Home from '../views/Home.vue'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
const
routes
:
Array
<
RouteConfig
>
=
[
const
routes
:
Array
<
RouteConfig
>
=
[
{
//
{
path
:
'/'
,
//
path: '/',
name
:
'Home'
,
//
name: 'Home',
component
:
Home
//
component: Home
},
//
},
{
//
{
path
:
'/about'
,
//
path: '/about',
name
:
'About'
,
//
name: 'About',
// route level code-splitting
//
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
//
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
//
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/About.vue'
)
//
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}
//
}
]
]
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
...
...
src/views/About.vue
deleted
100644 → 0
View file @
058c4e67
<
template
>
<div
class=
"about"
>
<h1>
This is an about page
</h1>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'vue'
export
default
Vue
.
extend
({
})
</
script
>
src/views/Home.vue
deleted
100644 → 0
View file @
058c4e67
<
template
>
<div
class=
"home"
>
<img
alt=
"Vue logo"
src=
"../assets/logo.png"
>
<HelloWorld
msg=
"Welcome to Your Vue.js + TypeScript App"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'vue'
;
import
HelloWorld
from
'@/components/HelloWorld.vue'
;
// @ is an alias to /src
export
default
Vue
.
extend
({
name
:
'Home'
,
components
:
{
HelloWorld
,
},
});
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment