Some Changes
This commit is contained in:
@@ -59,24 +59,23 @@ const checkBIC = async () => {
|
||||
}
|
||||
|
||||
const generateLink = async () => {
|
||||
const {data,error} = await axios({
|
||||
url:`${axiosBaseUrl}/banking/link?tenant=${dataStore.currentTenant}&institution_id=${bankData.value.id}`,
|
||||
method: "POST",
|
||||
auth: {
|
||||
username: "frontend",
|
||||
password: "Xt9Zn9RDSpdbr"
|
||||
}
|
||||
})
|
||||
try {
|
||||
const {data} = await axios({
|
||||
url:`${axiosBaseUrl}/banking/link?tenant=${dataStore.currentTenant}&institution_id=${bankData.value.id}`,
|
||||
method: "POST",
|
||||
auth: {
|
||||
username: "frontend",
|
||||
password: "Xt9Zn9RDSpdbr"
|
||||
}
|
||||
})
|
||||
|
||||
console.log(data)
|
||||
console.log(error)
|
||||
|
||||
if(data) {
|
||||
await navigateTo(data.link, {
|
||||
open: {
|
||||
target: "_blank"
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user