base link exported

This commit is contained in:
nquidox 2025-10-12 14:21:37 +03:00
parent a62258819f
commit 4735899c39
2 changed files with 5 additions and 3 deletions

View file

@ -8,6 +8,9 @@ import router from './router'
const app = createApp(App)
export const BASE_URL = 'https://api.nqws.ru/api/v2'
// export const BASE_URL = 'http://localhost:9090/api/v2'
export const BASE_MANDARAKE_LINK = 'https://order.mandarake.co.jp/order/listPage/list?soldOut=1&keyword='
app.use(createPinia())
app.use(router)

View file

@ -2,11 +2,10 @@
import router from '@/router/index.js'
import { computed, ref } from 'vue'
import { useMerchApi } from '@/api/merch.js'
import { BASE_MANDARAKE_LINK } from '@/main.js'
const { addMerch } = useMerchApi()
const mandarakeLink = 'https://order.mandarake.co.jp/order/listPage/list?soldOut=1&keyword='
const name = ref('')
// surugaya block
@ -17,7 +16,7 @@ const checkAutoComplete = ref(true)
const customLink = ref('')
const mandarakeAutocomplete = computed(() => {
return `${mandarakeLink}${name.value}`
return `${BASE_MANDARAKE_LINK}${name.value}`
})
const mandarakeResultLink = computed({