Problems encountered by vuex referencing through CDN

after vuex is installed through npm, using mapGetters requires import {mapGetters} from "vuex" to introduce mapGetters, but my project is to introduce vuex.min.js files through CDN. I want to use mapGetters on the page how to introduce mapGetters. It seems that no one has used it for a long time on the Internet. Is there a great god? -sharp-sharp-sharp problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

clipboard.png

clipboard.png

what result do you expect? What is the error message actually seen?

topic description

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

May.12,2021

Vuex.mapGetters


I used Vuex.mapGetters, in the computed function how to report Vuex is not definewd

Menu