All Questions
143 questions
0
votes
1
answer
2k
views
Vue - refresh state on clicking back button in the browser
I am developing a login page, which lists different provider options. If you click on a provider, it will redirect to the sign-in page of the respective provider. This login component has a bool ...
-1
votes
1
answer
797
views
Trouble with Pinia mapActions and component visibility of 'getData()' method - why is 'this.getData' working?
i'm using Pinia for storage variables and functions, i define getData() in the store.
getData(){
apiClient.get()
.then(res => {
res.data.forEach(element => this....
3
votes
1
answer
6k
views
How to use Vue js global variables in pinia store?
I have a Vue.js 3 project where I want to use a global axios instance in some .vue components and also in a pinia store.
My main.js file has axios globally configured like this
const axiosInstance = ...
0
votes
1
answer
101
views
Cannot find module './undefined' when updating a template ref in Vue
Objective
Render components based on a dynamically changing reference (ref). User can perform a "search" feature that returns data and updates the reference. The updated reference should ...
0
votes
1
answer
347
views
How to show array data without loop in vuejs and axios
I am trying to print data without loop in my vuejs 3 app bellow my response and code
In My Axios Api I got reponse:
[{id: 2, name: "sub_title", value: "The Best Developer Team", ...
0
votes
0
answers
2k
views
Vue3 - TypeError: 'set' on proxy: trap returned falsish for property 'basketCount'
I have a problem. I'm using props to update my basketCount but I have a problem:
How can I update my basketCount ? Can you give me some advice please ?
These are my codes:
Home.vue
<template>
...
0
votes
1
answer
135
views
Vue3 - Get input file from other component
I'm working on a complex app so I simplify my question.
I have a input component located in the InputFile.vue and a FormFile.vue. I import the InputFile into the Form and after the user uploads a file ...
0
votes
4
answers
1k
views
How can I pass query parameters optional using axios in vue?
I try like this :
const actions = {
getData ({ commit }, payload) {
const params = {}
if(payload) {
if (payload.dateFrom) { params.date_from = payload.dateFrom }
if (...
0
votes
1
answer
609
views
Vue 3 axios get data not renders in v-for
I'm getting data with axios in my property list page, the data shows in console log but never renders in my table. can anyone help with the problem?
my real sate Table body component is like:
<...
1
vote
2
answers
1k
views
vue.js get id from select to axios post and display another select
Probably this is a very stupid question, i'm new in vue.js and javascript, so please forgive me if the question is not properly explained or the answer is simple... I have a problem
I wanted to get ...
0
votes
1
answer
1k
views
Vue 3 customize axios get,put,post
I want to customize my get,post,put functions with axios.
After doing the axios.create() operation, when I do the get operation, I want it to perform the then and catch operation there every time.
...
0
votes
2
answers
235
views
Vuetify Table - rendering column value based on a API response
I have this simple function
displayAttributeNameBasedOnId(id) {
axios.defaults.headers['Content-Type'] = 'application/json'
let data = {
$root: 'vc_rule_attribute',
op: 'read',...
10
votes
2
answers
34k
views
How to use Axios with Vue 3 Composition API
I am attempting to build a Pokemon filtered search app with Vue 3 and Composition API based on the following tutorial: https://www.youtube.com/watch?v=QJhqr7jqxVo. (GitHub: https://github.com/ErikCH/...
1
vote
1
answer
279
views
Ability to load component while axios
Is it possible to do the following: There is a spinner component.
axios:
method() {
SPINNER (component) -- on
axios.get('/shop', {
params: {
something
}
}) ....
0
votes
1
answer
23
views
Vue.js progect deploying
Do I have to change all the tracks(Path) for photos, php files paths and db connection files every time I upload the vue.js project to a real server?
Is there an easier or faster way?