Skip to content

Commit 3cc158f

Browse files
authored
fix: ctrl key (#583)
* fix: ctrl key * docs: format
1 parent 9355aeb commit 3cc158f

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信内容
5252
| 5 | [七牛云](https://www.qiniu.com/products/kodo) | 配置 `AccessKey``SecretKey``Bucket``Domain``Region` 参数 | [如何使用七牛云 Kodo?](https://developer.qiniu.com/kodo) |
5353
| 6 | [MinIO](https://min.io/) | 配置 `Endpoint``Port``UseSSL``Bucket``AccessKey``SecretKey` 参数 | [如何使用 MinIO?](http://docs.minio.org.cn/docs/master/) |
5454
| 7 | [公众号](https://mp.weixin.qq.com/) | 配置 `appID``appsecret``代理域名` 参数 | [如何使用公众号图床?](https://mp.honwhy.wang/tutorial) |
55-
| 8 | [Cloudflare R2](https://developers.cloudflare.com/r2/) | 配置 `AccountId``AccessKey``SecretKey``Bucket``Domain` 参数 | [如何使用 S3 API 操作 R2](https://developers.cloudflare.com/r2/api/s3/api/) |
55+
| 8 | [Cloudflare R2](https://developers.cloudflare.com/r2/) | 配置 `AccountId``AccessKey``SecretKey``Bucket``Domain` 参数 | [如何使用 S3 API 操作 R2](https://developers.cloudflare.com/r2/api/s3/api/) |
5656
| 9 | 自定义上传 || [如何自定义上传?](#自定义上传逻辑) |
5757

5858
![demo1](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/demo1.gif)

example/README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22

33
## worker.js
44

5-
公众号openapi接口代理服务示例,该项目将请求转发至微信公众号api
5+
公众号 openapi 接口代理服务示例,该项目将请求转发至微信公众号 api
66

77
开发调试:
88

9-
```
9+
```bash
1010
cd example
1111
npx wrangler dev worker.js
1212
```
13+
1314
或者安装依赖后启动
14-
```
15+
16+
```bash
1517
cd example
1618
pnpm i
1719
pnpm dev
1820
```
1921

2022
部署:
2123

22-
请将其部署到cloudflare workers。
24+
请将其部署到 cloudflare workers。

src/views/CodemirrorEditor.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { ComponentPublicInstance } from 'vue'
3-
import { altKey, altSign, ctrlKey, shiftKey, shiftSign } from '@/config'
3+
import { altKey, altSign, ctrlKey, ctrlSign, shiftKey, shiftSign } from '@/config'
44
import { useDisplayStore, useStore } from '@/stores'
55
import {
66
checkImage,
@@ -416,11 +416,11 @@ onMounted(() => {
416416
<ContextMenuSeparator />
417417
<ContextMenuItem inset @click="copyToClipboard()">
418418
复制
419-
<ContextMenuShortcut>Ctrl + C</ContextMenuShortcut>
419+
<ContextMenuShortcut> {{ ctrlSign }} + C</ContextMenuShortcut>
420420
</ContextMenuItem>
421421
<ContextMenuItem inset @click="pasteFromClipboard">
422422
粘贴
423-
<ContextMenuShortcut>Ctrl + V</ContextMenuShortcut>
423+
<ContextMenuShortcut> {{ ctrlSign }} + V</ContextMenuShortcut>
424424
</ContextMenuItem>
425425
<ContextMenuItem inset @click="formatContent()">
426426
格式化

0 commit comments

Comments
 (0)