Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
1k 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 ...
nitcherry's user avatar
-1 votes
1 answer
564 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....
user21000937's user avatar
2 votes
1 answer
5k 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 = ...
Philip Nous's user avatar
0 votes
1 answer
95 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 ...
Jeremy Kung's user avatar
0 votes
1 answer
325 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", ...
Happy Arif's user avatar
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> ...
yunusemre55's user avatar
0 votes
1 answer
90 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 ...
Vic Wild's user avatar
0 votes
4 answers
755 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 (...
positive developer's user avatar
0 votes
1 answer
591 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: <...
Sanaz Baghban's user avatar
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 ...
Okatawo's user avatar
  • 13
0 votes
1 answer
976 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. ...
Celal Poyraz's user avatar
0 votes
2 answers
218 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',...
code-8's user avatar
  • 57.5k
10 votes
2 answers
32k 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/...
JS_is_awesome18's user avatar
1 vote
1 answer
274 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 } }) ....
Alex's user avatar
  • 375
0 votes
1 answer
22 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?
Mohamed Omar's user avatar

15 30 50 per page
1
2 3 4 5
10