WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0fd5ee7

Browse files
committed
changed some more publicapi
1 parent 627ae54 commit 0fd5ee7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ui/src/views/BruciWebViews/SponsorsPageView.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ import Footer from '@/components/NavbarAndFooter/Footer.vue'
8686
import NavbarBweb from '@/components/NavbarAndFooter/NavbarBweb.vue'
8787
import store from '@/store/visibilityStore'
8888
import { publicApi } from "@/plugins/publicApi";
89-
import { api } from '@/plugins/api';
9089
9190
export default {
9291
components: { Footer, NavbarBweb },
@@ -167,8 +166,8 @@ export default {
167166
methods: {
168167
created() {
169168
if (this.slug !== '0') {
170-
api
171-
.get(`${process.env.VUE_APP_BASE_URL}/sponsors/public/guests/`, {
169+
publicApi
170+
.get(`/sponsors/public/guests/`, {
172171
params: { slug: this.slug }
173172
})
174173
.then(response => {
@@ -182,8 +181,8 @@ export default {
182181
}
183182
},
184183
sponsorDelete(guest) {
185-
api.delete(
186-
`${process.env.VUE_APP_BASE_URL}/sponsors/public/guests/`,
184+
publicApi.delete(
185+
`/sponsors/public/guests/`,
187186
{ params: { slug: this.slug, id: guest.id } }
188187
).then(() => {
189188
this.created();
@@ -209,7 +208,7 @@ export default {
209208
name: guestName,
210209
};
211210
212-
api.post(`${process.env.VUE_APP_BASE_URL}/sponsors/public/guests/`, payload)
211+
publicApi.post(`/sponsors/public/guests/`, payload)
213212
.then(() => {
214213
this.sponsorName = "";
215214
this.created();

0 commit comments

Comments
 (0)