nhayder's avatar
Level 13

Axios ajax call not working on safari

I'm fetching data on my app using axios like this


        async saveText({commit}, [id, text, name, wIndex]){

            commit('WORK_ON');

            await axios.put('/api/text', {

                elem: text,

                elemName : name,

                elemId: id,

            })

            .then(function (response) {


                Event.$emit('success'); 

            })

            .catch(function (error) {

                Event.$emit('requestAlertDanger'); 

            });

        },

the code is working fine on chrome but today i was testing the app on safari and was surprised that code is not working.

Any ideas why that is??? How do fix this issue

0 likes
1 reply

Please or to participate in this conversation.