09 2023 档案

摘要:vite.config.js里 import { resolve } from "path"; const pathResolve = (dir) => resolve(__dirname, dir); server: { port: 8080, //默认启动时的端口号 open: true, // 阅读全文
posted @ 2023-09-20 17:48 Baipei 阅读(653) 评论(0) 推荐(0) 编辑
摘要:hbuilderX直接安装/或者通过命令行``npm init``安装 ### 安装express ``npm install express --save`` 在app.js中引入express ```js // 引入express框架,并使用express const express = req 阅读全文
posted @ 2023-09-20 16:17 Baipei 阅读(37) 评论(0) 推荐(0) 编辑
摘要:1、npm i vite-plugin-svg-icons npm i fast-glob 2、在assets下创建svg目录 找想要的图标复制svg代码放到svg 在vite.config.js配置: import {createSvgIconsPlugin}from 'vite-plugin-s 阅读全文
posted @ 2023-09-20 15:51 Baipei 阅读(34) 评论(0) 推荐(0) 编辑
摘要:<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 阅读(9) 评论(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 阅读(11) 评论(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 阅读(4) 评论(0) 推荐(0) 编辑
摘要:## 后端 ### 安装node项目 hbuilderX直接安装/或者通过命令行``npm init``安装 ### 安装express ``npm install express --save`` 在app.js中引入express ```js // 引入express框架,并使用express 阅读全文
posted @ 2023-09-17 18:51 Baipei 阅读(84) 评论(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 阅读(392) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.csdn.net/weixin_44001222/article/details/127473411 阅读全文
posted @ 2023-09-05 20:11 Baipei 阅读(3) 评论(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 阅读(2) 评论(0) 推荐(0) 编辑
摘要:安装后端所需基本依赖项目的接口文档https://apifox.com/apidoc/shared-5a53a935-41de-43d0-9bd7-272baf4f7fc6 下面是安装后端基本环境 一、安装nodehttps://nodejs.cn/download/点击下载对应的版本安装完后在控制 阅读全文
posted @ 2023-09-05 19:54 Baipei 阅读(58) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示