getStock() {
let t = 0;
const timeOut = () => {
//9秒定时器
setTimeout(() => {
this.$store.dispatch("HOME_STOCK", {}).then(() => {
t = t || 9 * 1000;
timeOut();
});
}, t);
};
timeOut();
},
// getStock() {
// let t = 0;
// const timeOut = () => {
// //9秒定时器
// setTimeout(() => {
// this.$store.dispatch("HOME_STOCK", {}).then(() => {
// t = t || 9 * 1000;
// timeOut();
// });
// }, t);
// };
// timeOut();
// },