vue cli 4快速訪問 public 文件夾,同時確保打包並部署到 github 上不會 404

在 main.js 中注入 public 文件夾路徑原型 // 前往 public 文件夾的路徑 Vue.prototype.$PUBLIC_PATH = process.env.BASE_URL 以後正常使用便可:web getMsg () { const query = { url: this.$PUBLIC_PATH + 'data/lot
相關文章
相關標籤/搜索