Iview admin refers to Baidu Map api, and there is no problem running in idea. , BMap not found after packaging and publishing to the server

about the import method, I have tried to find < script > directly in index.html and write a map.js
either way is an error that can not be found in BMap after packaging.

clipboard.png

do you have any solutions or ideas?


webpack.base.conf.js add


I have found the reason. There is no introduction of script in index.html after packaging. Join again and add it.

Menu