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 23:17:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d34142c94fb7fc95c05f66f6174a9fa19519ff7
4d34142c
1 parent
8bede41b
character api 호출
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
app/web/src/routes/Character.svelte
app/web/src/routes/Character.svelte
View file @
4d34142
...
...
@@ -2,12 +2,29 @@
export let params = {};
import {push} from 'svelte-spa-router';
import axios from 'axios';
let character = {};
function init() {
let nickname;
if(!params.character) {
M.toast({html:"캐릭터명을 입력해주세요."});
push("/");
}
nickname = decodeURI(params.character);
axios.get('/api/character', {
params:{
nickname:nickname
}
}).then(function(response) {
console.log(response);
}).catch(function(error) {
console.log(error);
});
}
init();
...
...
Please
register
or
login
to post a comment