-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3: Fixed the issue with vue vue-router and poi
- Loading branch information
1 parent
55b60a4
commit 164326c
Showing
8 changed files
with
88 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,49 @@ | ||
<template> | ||
|
||
<v-app id="inspire"> | ||
<v-content> | ||
<v-container fluid fill-height> | ||
<v-layout align-center justify-center> | ||
<v-flex xs12 sm8 md4> | ||
<v-card class="elevation-12"> | ||
<v-toolbar dark color="primary"> | ||
<v-toolbar-title>Login form</v-toolbar-title> | ||
<v-spacer></v-spacer> | ||
</v-toolbar> | ||
<v-card-text> | ||
<v-form> | ||
<v-text-field | ||
prepend-icon="person" | ||
name="login" | ||
label="Login" | ||
type="text" | ||
></v-text-field> | ||
<v-text-field | ||
prepend-icon="lock" | ||
name="password" | ||
label="Password" | ||
id="password" | ||
type="password" | ||
></v-text-field> | ||
</v-form> | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="primary" @click="login">Login</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-flex> | ||
</v-layout> | ||
</v-container> | ||
</v-content> | ||
</v-app> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
methods: { | ||
login() { | ||
this.$router.push('/library') | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Courses Library</title> | ||
<link rel="icon" href="./assets/course.png"> | ||
<!-- Compiled and minified CSS --> | ||
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet"> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Courses Library</title> | ||
<link rel="icon" href="./assets/course.png"> | ||
<!-- Compiled and minified CSS --> | ||
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
|
||
<body> | ||
<div id="app"></div> | ||
</body> | ||
|
||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import App from './app.vue'; | ||
import SignIn from './components/signin' | ||
|
||
export const routes = [ | ||
{ path: '/signin', component: SignIn }, | ||
{ path: '/library', component: App } | ||
]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<router-view></router-view> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
}; | ||
</script> |