Static GitHub Issues

[815] TypeError: Cannot read property 'then' of undefined when "npm run generate"

prev: Different bundles for different pages
next: child_process & fs module not found

'then' method is so used :

this.$store.dispatch('getOwnerDeptment')
    .then((response) => {
        let result = response.data;
        if (result.code === 0) {
            this.deptList = result.data;
         }
    })
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c700">#c700</a>)</em></sub></div>