all the packaged files can be used by css, that is, the json file 404 in static has been modified once on the Internet, but it still can"t be displayed.
build: {
// Template for index.html
index: path.resolve(__dirname, "../dist/index.html"),
// Paths
assetsRoot: path.resolve(__dirname, "../dist"),
assetsSubDirectory: "static",
assetsPublicPath: "./",
this is how I refer to the local json file:
mounted: function () {
axios.get("static/data/dataBase.json")
.then((res) => {
console.log(res)
this.news = res.data.dataTxt
})
.catch((err) => {
console.log(err)
})
},