nhayder
2 months ago
105
1
Laravel

Axios ajax call not working on safari

Posted 2 months ago by nhayder

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

Please sign in or create an account to participate in this conversation.