mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix(copy): Mobile compatibility issues.
This commit is contained in:
@@ -101,7 +101,7 @@ function filterCardClose(pri: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分享规则
|
// 分享规则
|
||||||
function shareRules() {
|
async function shareRules() {
|
||||||
if (filterRuleCards.value.length === 0) return
|
if (filterRuleCards.value.length === 0) return
|
||||||
|
|
||||||
const value = filterRuleCards.value
|
const value = filterRuleCards.value
|
||||||
@@ -110,8 +110,10 @@ function shareRules() {
|
|||||||
.join('>')
|
.join('>')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
copyToClipboard(value)
|
let success
|
||||||
$toast.success('优先级规则已复制到剪贴板')
|
success = copyToClipboard(value)
|
||||||
|
if (await success) $toast.success('优先级规则已复制到剪贴板!')
|
||||||
|
else $toast.error('优先级规则复制失败:可能是浏览器不支持或被用户阻止!')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
$toast.error('优先级规则复制失败!')
|
$toast.error('优先级规则复制失败!')
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user