08 2023 档案

vite+vue3+ts+elementPlus前端框架搭建 [三] router路由管理
摘要:路由包括动态路由、静态路由两种,本文中以静态路由的方式实现了动态路由。 1. 创建Router 在Src目录下创建router文件夹,并在router文件夹下创建index.ts文件。 index.ts文件内容如下: import { reactive } from "vue"; import *
401
0
0
前端函数汇总
摘要:获得本周,周一和周日 let now = new Date(); let nowTime = now.getTime(); let day = now.getDay(); let oneDayTime = 24 * 60 * 60 * 1000; let MondayTime = nowTime -
30
0
0
vite+vue3+ts+elementPlus前端框架搭建 [二] pinia状态管理
摘要:前面已经完成了基本框架搭建,下一步针对各个模块的封装以及实验 本章主要是针对pinia的状态模块实现 1. 创建Store 在src文件夹下创建一个store的文件夹,并在该文件夹下创建index.ts文件,内容如下: import type { App } from 'vue'; import {
194
0
0
vite+vue3+ts+elementPlus前端框架搭建 [一]
摘要:记录下搭建vite + vue3 + ts + elementPlus项目的过程及遇到的问题。 建议使用pnpm安装依赖,npm切换到pnpm 链接地址:[https://www.pnpm.cn/installation]() 1. 运行环境 node -v v18.17.0 npm -v 9.8.
375
0
0
深色
回顶
收起
点击右上角即可分享
微信分享提示