Skip to content

Commit b9e352b

Browse files
author
horanhe
committed
feat: 切换域名
1 parent e318b24 commit b9e352b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const env = require('../env.json');
22

33
export default {
4-
apiUrl: env.API_URL || "https://api.lua-china.com",
4+
apiUrl: env.API_URL || "https://lua-china.com/api",
55
apiInternalUrl: env.API_INTERNAL_URL,
66
githubClientId: env.GITHUB_CLIENT_ID,
7-
}
7+
}

pages/users/_id/edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797
formdata.append("file", avatar);
9898
this.isUploading = true;
9999
apiService
100-
.post("https://file.lua-china.com/v1/cos/upload/cdn", formdata)
100+
.post("https://lua-china.com/file/v1/cos/upload/cdn", formdata)
101101
.then(res => {
102102
this.user.avatar = res.data.data.cdn_url;
103103
this.$toast({

0 commit comments

Comments
 (0)