摘要: <template> <div class="bread-crumb"> <SvgIcon icon-name="location" class="bread-crumb-icon"></SvgIcon> <el-breadcrumb separator="/"> <el-breadcrumb-it 阅读全文
posted @ 2023-09-20 15:30 Baipei 阅读(13) 评论(0) 推荐(0)
摘要: import instance from '@/http/index.js' // 注册 export const register = (data) => { const { account, password } = data; return instance({ url: "/api/regi 阅读全文
posted @ 2023-09-20 15:28 Baipei 阅读(12) 评论(0) 推荐(0)
摘要: import axios from 'axios' const instance = axios.create({ // 后端url地址 baseURL: 'http://127.0.0.1:3007', timeout: 6000, //设置超时 headers: { 'Content-Type' 阅读全文
posted @ 2023-09-20 15:22 Baipei 阅读(10) 评论(0) 推荐(0)
摘要: ## 后端 ### 安装node项目 hbuilderX直接安装/或者通过命令行``npm init``安装 ### 安装express ``npm install express --save`` 在app.js中引入express ```js // 引入express框架,并使用express 阅读全文
posted @ 2023-09-17 18:51 Baipei 阅读(121) 评论(0) 推荐(0)
摘要: 为什么要使用mitt?因为vue3已经没有提供配套的事件总线bus,需要使用第三方库mitt来完成vue2中bus完成的事情 第一步:安装mitt npm install mitt1第二步:在项目的js文件中导入mitt(局部注册) // mitt.js文件import mitt from 'mit 阅读全文
posted @ 2023-09-07 00:00 Baipei 阅读(461) 评论(0) 推荐(0)
摘要: 链接:https://blog.csdn.net/weixin_44001222/article/details/127473411 阅读全文
posted @ 2023-09-05 20:11 Baipei 阅读(6) 评论(0) 推荐(0)
摘要: body-parser官网https://www.npmjs.com/package/body-parser 用途:用于解析表单数据npm install body-parser 在app.js中导入body-parser // 解析表单数据的中间件// 防止req.body等于undefinedc 阅读全文
posted @ 2023-09-05 20:00 Baipei 阅读(7) 评论(0) 推荐(0)
摘要: 安装后端所需基本依赖项目的接口文档https://apifox.com/apidoc/shared-5a53a935-41de-43d0-9bd7-272baf4f7fc6 下面是安装后端基本环境 一、安装nodehttps://nodejs.cn/download/点击下载对应的版本安装完后在控制 阅读全文
posted @ 2023-09-05 19:54 Baipei 阅读(85) 评论(0) 推荐(0)
摘要: 第一步 : yarn add -D vite-plugin-require-transform或 npm i vite-plugin-require-transform --save-dev第二步: 在vite.config.js中配置 import { defineConfig } from 'v 阅读全文
posted @ 2023-08-28 21:13 Baipei 阅读(344) 评论(0) 推荐(0)
摘要: 下载:npm i @vueuse/core 使用<div ref="target"> <NewGoodCourse v-if='targetIsVisible'></NewGoodCourse> </div>import { useIntersectionObserver } from '@vueu 阅读全文
posted @ 2023-08-27 01:56 Baipei 阅读(12) 评论(0) 推荐(0)