We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Adding vue-loading in store wont work. When i add it inside component, al works.
My bootstrap file:
import Loading from 'vue-loading-overlay'; import 'vue-loading-overlay/dist/vue-loading.css'; Vue.use(Loading); Vue.use(VueNoty); Vue.use(Vuex);
Here is the current code- inside store/index.js
actions: { setAds({ commit }, category) { let loader = this.$loading.show({ // Optional parameters loader: 'dots', height: 255, width: 255, color: '#7DC242' }); axios.get('/ads', { params: { category: category } }).then(data => { let ads = data.data.data; commit('ads', ads); loader.hide() }); },
Here is the error photo:
The text was updated successfully, but these errors were encountered:
I don't think this refers to a Vue instance here, you can import vue and can use it like
this
// in your vuex store import Vue from 'vue; Vue.$loading.show({})
Sorry, something went wrong.
Just Vue.$loading works, no need to import Vue in store. Thanks
vue-loading
No branches or pull requests
Hi,
Adding vue-loading in store wont work.
When i add it inside component, al works.
My bootstrap file:
Here is the current code- inside store/index.js
Here is the error photo:
The text was updated successfully, but these errors were encountered: