摘要: 最近在review自己写的代码时发现,在很多的地方都用了以下的代码块 1 async initCode() { 2 const resSource = await this.$API.syscode.list.get({ 3 typeCode: "source", 4 type: 3, 5 }); 阅读全文
posted @ 2023-12-21 15:20 Jason.裕哥 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 路由包括动态路由、静态路由两种,本文中以静态路由的方式实现了动态路由。 1. 创建Router 在Src目录下创建router文件夹,并在router文件夹下创建index.ts文件。 index.ts文件内容如下: import { reactive } from "vue"; import * 阅读全文
posted @ 2023-08-10 09:24 Jason.裕哥 阅读(208) 评论(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:19 Jason.裕哥 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 前面已经完成了基本框架搭建,下一步针对各个模块的封装以及实验 本章主要是针对pinia的状态模块实现 1. 创建Store 在src文件夹下创建一个store的文件夹,并在该文件夹下创建index.ts文件,内容如下: import type { App } from 'vue'; import { 阅读全文
posted @ 2023-08-02 13:12 Jason.裕哥 阅读(113) 评论(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.裕哥 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 上文说到安装mysql、redis、net6及部署应用 GO 接着本次配置通过域名访问站点,站点总共分为两个,前端、后端 项目为前后端分离,管理包括服务+管理UI,为一个站点,管理UI,放到服务某个文件夹中 Web访问为另一个站点。 一、安装Nginx sudo apt-get install ng 阅读全文
posted @ 2023-05-08 17:49 Jason.裕哥 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 一、更新系统软件包索引 sudo apt update 二、安装docker sudo apt install docker.io 三、在docker中安装Mysql 拉取mysql镜像 docker pull mysql:latest 查看镜像 docker images 运行容器 docker 阅读全文
posted @ 2023-05-02 09:40 Jason.裕哥 阅读(645) 评论(0) 推荐(1) 编辑
摘要: 一、升级apt资源包 sudo apt update 二、安装MySQL sudo apt install mysql-server 三、启动MySQL服务 sudo service mysql start 四、登录MySql 查看MySql用户名/密码 sudo cat /etc/mysql/de 阅读全文
posted @ 2023-02-28 15:03 Jason.裕哥 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 一般 ASP.NET Core Documentation - 官方ASP.NET核心文档站点。 .NET Core Documentation - .NET Core,C#,F#和Visual Basic技术文档的主页,包括基本概念,入门说明,教程和示例。 .NET Core SDK - .NET 阅读全文
posted @ 2022-12-27 10:00 Jason.裕哥 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 基于NetCore的基准测试Demo(控制台程序) 创建控制台程序,输入工程名称 LinqConsole 通过NuGet引用BenchmarkDotNet至工程中 编写测试代码 类:Benchmarks.cs using BenchmarkDotNet.Attributes; using Bench 阅读全文
posted @ 2022-11-05 12:37 Jason.裕哥 阅读(110) 评论(0) 推荐(0) 编辑