Skip to content

Commit

Permalink
Update lastUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
T-miracle committed Jan 16, 2025
1 parent e23a99a commit f0372f2
Show file tree
Hide file tree
Showing 104 changed files with 467 additions and 105 deletions.
3 changes: 2 additions & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default defineConfig({
'@img': path.join(__dirname, '../src/public/images/'),
'@NanoUI': path.join(__dirname, '../package/components/'),
'@NanoIcon': path.join(__dirname, '../package/icon/'),
'@store': path.join(__dirname, '../package/store/')
'@store': path.join(__dirname, '../package/store/'),
'@HWY': 'https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images'
}
},
plugins: [
Expand Down
27 changes: 3 additions & 24 deletions .vitepress/sidebar/learn.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import {
androidIcon,
conceptIcon,
cssIcon, deployIcon, dockerIcon, editorIcon, githubIcon, gitIcon, hBuilderXIcon,
htmlIcon,
httpIcon, ideaIcon,
infoIcon,
javaBaseIcon,
javaIcon,
jsIcon, mySQLIcon, npmIcon,
rearEndIcon,
springBootIcon, springIcon, sqlIcon, uniAppIcon, versionControlIcon,
vueIcon,
androidIcon, conceptIcon, cssIcon, deployIcon, dockerIcon, editorIcon, gitIcon, hBuilderXIcon,
htmlIcon, httpIcon, ideaIcon, infoIcon, javaBaseIcon, javaIcon, jsIcon, mySQLIcon, npmIcon,
rearEndIcon, springBootIcon, springIcon, sqlIcon, uniAppIcon, versionControlIcon, vueIcon,
webIcon, webpackIcon, wxMiniprogramIcon
} from './icons';
import htmlItems from './learn/html';
Expand Down Expand Up @@ -185,18 +176,6 @@ const learnSidebar: SidebarType[] = [
}
]
},
{
icon: githubIcon,
text: 'Github',
collapsed: true,
items: [
{
icon: '🔹',
text: 'README 说明文件美化教程',
link: '/learn/version_control/github/readme_beautify'
}
]
},
{
icon: npmIcon,
text: 'NPM',
Expand Down
4 changes: 4 additions & 0 deletions .vitepress/sidebar/newTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const newToolsSidebar: SidebarType[] = [
{
text: 'artalk 评论系统安装与配置教程(docker版)',
link: '/new-tools/docker_install_artalk'
},
{
text: 'README 说明文件美化教程',
link: '/new-tools/readme_beautify'
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions package/components/NanoMain/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
const showDatetime = computed(() => frontmatter.value.lastUpdated !== false);
// Listen for routing changes and scroll to the top
watch(() => [ route.path, hash ], ([ , hashValue ]) => {
watch(() => [ route.path, hash ], () => {
nextTick(() => {
if (hashValue) {
if (hash.value) {
setTimeout(() => {
hashChange();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2025/1/15 13:55
---

# 解决 SDK 无法下载的问题

> 下载不了的主要原因还是代理问题,需要配置下代理(前提你得有梯子)
Expand Down
6 changes: 5 additions & 1 deletion src/bugs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
lastUpdated: 2025/1/15 13:55
---

# 求求你别再出错了!

![](../public/images/write-bugs.jpg)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/write-bugs.jpg){width=320}

我发誓,我从未想过要让这些代码出错!

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# 头像组件第一次地址加载报错后,数据再次获取后无法重新加载

在 Element UI 版本中,如果 `el-avatar` 头像组件首次加载的地址是错误的地址,会导致后续更新都无法再次更新组件
Expand Down
2 changes: 1 addition & 1 deletion src/bugs/web/element-ui/el-form_customize_rule.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
cbf: false
lastUpdated: 2024/7/18 09:41
---

# el-form 自定义一个非输入选择的值的规则,但是无法生效的问题
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# MessageBox报错Uncaught (in promise) cancel

当使用`MessageBox``Message`组件时,如果组件方法后面不加上`catch()`方法会报错
Expand Down
4 changes: 4 additions & 0 deletions src/bugs/web/element-ui/table_tree_json_error.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# Error: for nested data item, row-key is required.

## 问题描述
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2024/1/15 11:33
---

# img 标签加载对象存储图片后再使用 canvas 调用当前图片,导致图片跨域的问题

::: tip 相关问题
Expand Down Expand Up @@ -40,7 +44,7 @@ No 'Access-Control-Allow-origin' header is present on the requested resource. //
2. 如果图片在 `<img>` 或者 `<el-image>` 中正常使用,就可以排除对象存储配置的问题了。
那么,就可以考虑 `crossOrigin` 相关的问题了,先说说 `crossOrigin` 是什么?MDN 上是如下解释的:

![crossOrigin](/images/crossOrigin.png)
![crossOrigin](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/crossOrigin.png)

当你使用了 `<img>` 或者 `<el-image>` 去加载了图片,那么再在同一页面使用 `new image()`
去加载这张图片,而且设置了 `crossOrigin` 的跨域属性为 `anonymous`
Expand Down
4 changes: 4 additions & 0 deletions src/bugs/web/typescript/warning_ts2307.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2024/12/23 00:50
---

# 代码警告:TS2307: Cannot find module 'xxx' or its corresponding type declarations.

这个错误通常发生在使用 TypeScript 编写的项目中,意思是 TypeScript 找不到名为 'xxx' 的模块或其对应的类型声明文件。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# 新安装包覆盖安装,新增加的页面无法跳转

uni-app 新打包的APK如果覆盖安装旧版APK,在 `pages.json` 中新添加的页面会无法正常跳转。
Expand Down
4 changes: 4 additions & 0 deletions src/learn/deploy/docker/centos_install_docker.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# CentOS 安装 Docker

## CentOS 环境
Expand Down
4 changes: 4 additions & 0 deletions src/learn/deploy/docker/docker_common_command.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2024/9/7 23:55
---

# Docker 常用命令

## 帮助启动类命令
Expand Down
4 changes: 4 additions & 0 deletions src/learn/deploy/docker/docker_configure_domestic_image.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2025/1/13 23:32
---

# docker配置国内镜像(Linux版)

## 编辑 Docker 配置文件
Expand Down
6 changes: 5 additions & 1 deletion src/learn/editor/hbuilderx/hot_key_change.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
---
lastUpdated: 2023/9/17 02:12
---

# 自用快捷键设置-仿IDEA

首先,要进行以下配置:

![](/images/HbuilderX-hotkeys.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/HbuilderX-hotkeys.png)

然后,在 `工具 - 自定义快捷键` 中,右侧栏填写以下 json 配置:

Expand Down
4 changes: 4 additions & 0 deletions src/learn/editor/intellij-idea/hotkey.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2025/1//10 00:24
---

# IDEA 常用快捷键

<IdeaHotkey/>
Expand Down
4 changes: 4 additions & 0 deletions src/learn/editor/intellij-idea/idea-plugins.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# IDEA 插件收集

<IdeaPlugins/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
---
lastUpdated: 2023/9/17 02:12
---

# 多行光标选中并编辑

## 鼠标滚轮键

按住鼠标滚轮键并拖动,选择块内所有文字

![](/images/idea_multi_cursor_3.gif)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/idea_multi_cursor_3.gif)

## `ALT` + 鼠标左键

按住`ALT`,拖动鼠标左键,选中块内所有文字

![](/images/idea_multi_cursor_4.gif)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/idea_multi_cursor_4.gif)

## `ALT + SHIFT` + 鼠标左键

按住`ALT + SHIFT`,点击鼠标左键,选中多行文字

![](/images/idea_multi_cursor_5.gif)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/idea_multi_cursor_5.gif)

## `ALT + J`组合键

选中一个字词,按下`ALT + J`组合键,可依次选中相同的字词

![](/images/idea_multi_cursor.gif)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/idea_multi_cursor.gif)

## `CTRL + SHIFT + ALT + J`组合键

选中一个字词,按下`CTRL + SHIFT + ALT + J`组合键,可一次性选中所有相同的字词

![](/images/idea_multi_cursor_2.gif)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/idea_multi_cursor_2.gif)
4 changes: 4 additions & 0 deletions src/learn/java/spring/what_is_di.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# 什么是DI(依赖注入)?

## 什么是依赖注入
Expand Down
4 changes: 4 additions & 0 deletions src/learn/java/spring/what_is_ioc.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# 什么是IoC(控制反转)?

## 什么是IoC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# Windows 下 MySQL 8.0 安装与配置

## 下载安装包
Expand All @@ -10,49 +14,49 @@ MYSQL 官网地址:[点击进入](https://dev.mysql.com/downloads/mysql/)

---

![](/images/mysql_8.0_download.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_download.png)

## 安装

点击下载的文件,进行安装

![](/images/mysql_8.0_install_1.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_1.png)

使用默认即可,一直点击`Next`到下面页面

![](/images/mysql_8.0_install_3.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_3.png)

点击`Execute`,开始安装,需等待片刻

![](/images/mysql_8.0_install_4.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_4.png)

当全部显示绿勾时,表示安装完毕,一直点击`Next`到下面页面

![](/images/mysql_8.0_install_6.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_6.png)

因为我们是本地开发环境,所以默认选择`Development Computer`,其他保持不变,一直点击`Next`到下面页面

![](/images/mysql_8.0_install_8.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_8.png)

设置密码,确认密码,一直点击`Next`到下面页面

![](/images/mysql_8.0_install_11.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_11.png)

点击`Execute`

![](/images/mysql_8.0_install_12.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_12.png)

全部显示绿勾,点击`Finish`,然后一直点击`Next`到下面页面

![](/images/mysql_8.0_install_16.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_16.png)

输入之前填写的密码,点击`Check`进行检查,绿勾表示连接成功,继续点击`Next`

![](/images/mysql_8.0_install_17.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_17.png)

点击`Execute`

![](/images/mysql_8.0_install_18.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_install_18.png)

全部显示绿勾,点击`Finish`,然后一直点击`Next`直到结束

Expand All @@ -62,25 +66,25 @@ MYSQL 官网地址:[点击进入](https://dev.mysql.com/downloads/mysql/)

其中`MySQL Server 8.0`就是 MySQL 服务器本体

![](/images/mysql_8.0_url.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_url.png)

打开系统环境变量配置,在 `设置 -> 系统 -> 系统信息 -> 高级系统设置 -> 环境变量 -> 系统变量``Path` 值中新增 `C:\Program Files\MySQL\MySQL Server 8.0\bin`

![](/images/mysql_8.0_path_set.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_path_set.png)

点击保存

## 运行

打开 CMD 命令行窗口,输入以下命令:

![](/images/mysql_8.0_cmd.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_cmd.png)

成功运行

## 如果没有运行,如何检查?

![](/images/mysql_8.0_manager.png)
![](https://namichong.obs.cn-south-1.myhuaweicloud.com/Blog/images/mysql_8.0_manager.png)

打开`计算机管理 - 服务`检查`MySQL80`服务是否运行

Expand Down
4 changes: 4 additions & 0 deletions src/learn/sql/mysql/mysql_8.0_reset_password.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# MySQL 8.0 以上版本忘记密码重置方式

## 关闭mysql服务
Expand Down
4 changes: 4 additions & 0 deletions src/learn/sql/mysql/mysql_8.0_zip_configuration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# ZIP 方式安装的配置方法

<vSetup/>
4 changes: 4 additions & 0 deletions src/learn/version_control/git/git_common_commands.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/9/17 02:12
---

# Git 常用命令

## 基础命令
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
lastUpdated: 2023/10/26 21:02
---

# Git将项目的某个目录分离成新的项目,并保留历史提交信息

1. 切换至你需要分离的项目的版本分支
Expand Down
Loading

0 comments on commit f0372f2

Please sign in to comment.