Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
caohongqing committed May 16, 2019
1 parent 60d9f60 commit cb44a3c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import data from "@/views/data";
Vue.use(Router);

export default new Router({
mode: "history",
base: process.env.BASE_URL,
routes: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
return;
} else {
this.$axios
.get("/api/users/" + name)
.get("https://api.github.com/users/" + name)
.then(response => {
let res = JSON.parse(JSON.stringify(response));
if (res.status === 200) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/data/dcontent/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default {
},
methods: {
getData(username) {
let comUrl = "/api/users/";
let comUrl = "https://api.github.com/users/";
let url1 = comUrl + username + "/events";
let url2 = comUrl + username + "/repos";
this.$axios
Expand Down
2 changes: 1 addition & 1 deletion src/views/data/dleft/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
methods: {
getData(username) {
this.$axios
.get("/api/users/" + username + "/repos")
.get("https://api.github.com/users/" + username + "/repos")
.then(response => {
let data = JSON.parse(JSON.stringify(response.data));
if (data.length < 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/data/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
methods: {
getData(username) {
this.$axios
.get("/api/users/" + username)
.get("https://api.github.com/users/" + username)
.then(response => {
let res = JSON.parse(JSON.stringify(response));
if (res.status === 200) {
Expand Down

0 comments on commit cb44a3c

Please sign in to comment.