摘要: 在模板文件中引入 <component :is="handleComponent" /> 在js中使用 const handleView = (viewUrl) => import('../' + viewUrl) //引入文件路径 export default { data(){ return { 阅读全文
posted @ 2023-03-06 15:29 大BUG 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 安装插件vue-pdf npm install vue-pdf --save 在vue中使用 import pdf from 'vue-pdf' data() { return { src: '', numPages: undefined, loadNum: 0 } }, const loading 阅读全文
posted @ 2023-03-06 15:17 大BUG 阅读(790) 评论(0) 推荐(0) 编辑
摘要: app.js中引入koa npm install koa 安装koa-bodyparser,解析post数据 npm install koa-bodyparser 安装数据库链接sequelize npm install sequelize 安装koa路由koa-router npm install 阅读全文
posted @ 2023-03-06 15:03 大BUG 阅读(58) 评论(0) 推荐(0) 编辑