Merge branch 'preview-features' into preview

This commit is contained in:
the1812 2022-06-03 21:10:31 +08:00
commit 24744b2032
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# 更新日志
## v2.2.1
`2022-06-03`
- 修复部分浏览器 / 脚本管理器中脚本无法运行. (对应报错 `Error: Couldn't find a style target`)
## v2.2.0
`2022-06-02`

View File

@ -117,7 +117,7 @@ getSpeedContext((components: EntrySpeedComponent[]) => disposableSpeedContext =>
if (repeatedKeys.length) {
throw new Error(
'In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\n'
'In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\n'
+ `The repeated key names are ${repeatedKeys.join(', ')}`,
)
}

View File

@ -1,5 +1,5 @@
{
"version": "2.2.0",
"version": "2.2.1",
"author": "Grant Howard, Coulomb-G",
"copyright": "[year], Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)",
"licence": "MIT",

View File

@ -1,5 +1,4 @@
import { LaunchBarActionProvider, LaunchBarAction } from '@/components/launch-bar/launch-bar-action'
import { Toast } from '@/core/toast'
import { PluginMetadata } from '../plugin'
const getCopyItem = async (name: string, id: string, original: string) => {
@ -11,6 +10,7 @@ const getCopyItem = async (name: string, id: string, original: string) => {
action: async () => {
if (item.name === id) {
await navigator.clipboard.writeText(id)
const { Toast } = await import('@/core/toast')
Toast.success('复制成功', `复制${name}`, 1500)
}
},