Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오윤석
/
maplespec.ga
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
4
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2020-06-04 21:50:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3b1ed2d92d66d9d76198633ecec2cc2f2368b839
3b1ed2d9
1 parent
e0420520
character page 추가
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
app/web/src/routes.js
app/web/src/routes/Character.svelte
app/web/src/routes.js
View file @
3b1ed2d
import
Search
from
'./routes/Search.svelte'
;
import
Character
from
'./routes/Character.svelte'
;
const
routes
=
{
'/'
:
Search
,
'/character'
:
Character
,
'/character/:character'
:
Character
,
};
export
default
routes
;
\ No newline at end of file
...
...
app/web/src/routes/Character.svelte
0 → 100644
View file @
3b1ed2d
<script>
export let params = {};
import {push} from 'svelte-spa-router';
function init() {
if(!params.character) {
M.toast({html:"캐릭터명을 입력해주세요."});
push("/");
}
}
init();
</script>
<svelte:head>
</svelte:head>
\ No newline at end of file
Please
register
or
login
to post a comment