08 2023 档案

摘要:路由包括动态路由、静态路由两种,本文中以静态路由的方式实现了动态路由。 1. 创建Router 在Src目录下创建router文件夹,并在router文件夹下创建index.ts文件。 index.ts文件内容如下: import { reactive } from "vue"; import * 阅读全文
posted @ 2023-08-10 09:23 Jason.裕哥 阅读(503) 评论(0) 推荐(0)
摘要:获得本周,周一和周日 let now = new Date(); let nowTime = now.getTime(); let day = now.getDay(); let oneDayTime = 24 * 60 * 60 * 1000; let MondayTime = nowTime - 阅读全文
posted @ 2023-08-07 11:18 Jason.裕哥 阅读(41) 评论(0) 推荐(0)
摘要:前面已经完成了基本框架搭建,下一步针对各个模块的封装以及实验 本章主要是针对pinia的状态模块实现 1. 创建Store 在src文件夹下创建一个store的文件夹,并在该文件夹下创建index.ts文件,内容如下: import type { App } from 'vue'; import { 阅读全文
posted @ 2023-08-02 13:12 Jason.裕哥 阅读(258) 评论(0) 推荐(0)
摘要:记录下搭建vite + vue3 + ts + elementPlus项目的过程及遇到的问题。 建议使用pnpm安装依赖,npm切换到pnpm 链接地址:[https://www.pnpm.cn/installation]() 1. 运行环境 node -v v18.17.0 npm -v 9.8. 阅读全文
posted @ 2023-08-02 12:12 Jason.裕哥 阅读(492) 评论(0) 推荐(0)