Ask for help. The timeout for setting axios is invalid.

axios.get(path, {
        timeout: 1000,
        params: {
            id: 12
        }
    });

repeatedly checked, backend 3 seconds to respond, I set axios 1 second timeout, but axios has not entered the catch, how fat 4?

clipboard.png
clipboard.png


found some clues on StackOverflow, needs to create an Axios instance

try to update JsFiddle, and it works
https://jsfiddle.net/Les41a0c/2/

.

axiosVueVue.prototype.axios = axios

import Vue from 'vue'
import App from './App'

//axios
Vue.prototype.axios = axiso;
axios.interceptors.response.use()

axios.get(path,params,{timeout: 1000});

//
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf85f3-320fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf85f3-320fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?