const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
// 禁用全局提醒
lintOnSave: false,
// 代理,前端跨域
devServer: {
proxy: 'http://localhost:3000'
},
// 打包路由位置, 解决本地网页获取
publicPath: './'
//
})
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-52wIj2q8-1669983095501)(attachment:19f409a8046cc3404e970cb5a24089cd)]
const router = new VueRouter({
mode: "histroy",
routes,
});