More performance trials: cancels filter requests before destroying their components.
This commit is contained in:
parent
cdb26d2c16
commit
1da3403f15
|
@ -216,5 +216,11 @@ export const filter_type_mixin = {
|
||||||
source: source
|
source: source
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
// Cancels previous Request
|
||||||
|
if (this.getOptionsValuesCancel != undefined)
|
||||||
|
this.getOptionsValuesCancel.cancel('Facet search Canceled.');
|
||||||
|
|
||||||
|
},
|
||||||
};
|
};
|
|
@ -238,7 +238,7 @@ import axios from '../js/axios/axios.js';
|
||||||
import 'swiper/dist/css/swiper.css';
|
import 'swiper/dist/css/swiper.css';
|
||||||
import { swiper, swiperSlide } from 'vue-awesome-swiper';
|
import { swiper, swiperSlide } from 'vue-awesome-swiper';
|
||||||
import CircularCounter from '../admin/components/other/circular-counter.vue';
|
import CircularCounter from '../admin/components/other/circular-counter.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ViewModeSlideshow',
|
name: 'ViewModeSlideshow',
|
||||||
props: {
|
props: {
|
||||||
|
|
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/
|
exclude: /node_modules/,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2|svg|svgz)(\?.+)?$/,
|
test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2|svg|svgz)(\?.+)?$/,
|
||||||
|
@ -105,7 +105,8 @@ if (production === true) {
|
||||||
|
|
||||||
module.exports.resolve = {
|
module.exports.resolve = {
|
||||||
alias: {
|
alias: {
|
||||||
'vue$': 'vue/dist/vue.min'
|
'vue$': 'vue/dist/vue.min',
|
||||||
|
'swiper$': 'swiper/dist/js/swiper.js'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue