curlftpfs#ftp://host1670806_baseecommerce:c6Ktwqkeey@ftp14.hostland.ru/ /mnt/ftp fuse rw,allow_other,user 0 0
curlftpfs#ftp://{пользователь}:{пароль}@{адрес сервера}/{папка}/ {путь к точке монтирования} fuse rw,allow_other,user 0 0
ftp14.hostland.ru
host1670806_baseecommerce
c6Ktwqkeey
curlftpfs#ftp://host1670806_baseecommerce:c6Ktwqkeey@ftp14.hostland.ru/ /mnt/ftp fuse rw,allow_other,user 0 0
fetch({ store }) {
const promise1 = new Promise((resolve, reject) => {
if (store.getters['home/home'].length === 0) {
resolve(store.dispatch('home/fetchHome'));
}
});
const promise2 = new Promise((resolve, reject) => {
if (store.getters["solutions/getSolutions"].length === 0) {
resolve(store.dispatch('solutions/fetchSolutions'));
}
});
const promise3 = new Promise((resolve, reject) => {
if (store.getters["tipo/getTipo"].length === 0) {
resolve(store.dispatch('tipo/fetchTipo'));
}
});
const promise4 = new Promise((resolve, reject) => {
if (store.getters["portfolio/getPortfolio"].length === 0) {
resolve(store.dispatch('portfolio/fetchPortfolio'));
}
});
const promise5 = new Promise((resolve, reject) => {
if (store.getters["options/getOptions"].length === 0) {
resolve(store.dispatch('options/fetchOptions'));
}
});
Promise.all([promise1, promise2, promise3, promise4, promise5])
.then((data) => console.log(data))
.catch((error) => console.log(error));