nodejs判断文件是否存在
使用nodejs的fs模块
使用nodejs的fs模块
项目需求需要在vue中展示pdf,vue-pdf这个插件非常好用,并且还有许多方法、属性能进行功能扩展。
目录为 mp
//vue.config.js 改为
publicPath: '/mp/',
const createRouter = () =>
new Router({
base: '/mp/', //改为
mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})
目的:使用vscode并安装eslint插件,项目成员统一代码规范,代码统一自动修复、统一格式化排版;