升级:将 VitePress 版本升级为 v1.0.0-alpha.30(官方已将 Badge 组件对齐显示问题修复)

This commit is contained in:
2022-12-07 21:18:40 +08:00
parent df0ab1f670
commit ff227d59b1
5 changed files with 15 additions and 15 deletions

View File

@@ -18,7 +18,7 @@
<span class="meta-icon pv">
<svg role="img" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><title>阅读数</title><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z"></path><path d="M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg>
</span>
<span class="meta-content" v-text="viewCount"></span>
<span class="meta-content" v-text="viewCount" :title="viewCount"></span>
</div>
<div class="meta-item" v-if="showCategory">
<span class="meta-icon category">

View File

@@ -36,7 +36,7 @@ SELECT * FROM `sys_user` WHERE `email` = 'charles7c@126.com' LIMIT 1;
```
:::
### 避免隐式类型转换 <Badge text="强制" type="error" />
### 避免隐式类型转换 <Badge text="强制" type="danger" />
我们在使用 MySQL 时,或多或少都感受过 MySQL 的隐式类型转换。例如user_id 是整数类型但是依然可以使用字符串类型数据来进行判断。MySQL 帮你做完这种隐式类型转换是有代价的,什么代价呢? **索引不再生效了而已**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 211 KiB