|
|
|
@ -108,7 +108,7 @@ watch(
|
|
|
|
|
|
|
|
|
|
|
|
// 拷贝
|
|
|
|
// 拷贝
|
|
|
|
const copyConfig = async () => {
|
|
|
|
const copyConfig = async () => {
|
|
|
|
const { copy, copied } = useClipboard({
|
|
|
|
const { copy, copied, isSupported } = useClipboard({
|
|
|
|
source: `
|
|
|
|
source: `
|
|
|
|
// 面包屑
|
|
|
|
// 面包屑
|
|
|
|
breadcrumb: ${appStore.getBreadcrumb},
|
|
|
|
breadcrumb: ${appStore.getBreadcrumb},
|
|
|
|
@ -171,11 +171,15 @@ theme: {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
`
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
if (!isSupported) {
|
|
|
|
|
|
|
|
ElMessage.error(t('setting.copyFailed'))
|
|
|
|
|
|
|
|
} else {
|
|
|
|
await copy()
|
|
|
|
await copy()
|
|
|
|
if (unref(copied)) {
|
|
|
|
if (unref(copied)) {
|
|
|
|
ElMessage.success(t('setting.copySuccess'))
|
|
|
|
ElMessage.success(t('setting.copySuccess'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 清空缓存
|
|
|
|
// 清空缓存
|
|
|
|
const clear = () => {
|
|
|
|
const clear = () => {
|
|
|
|
|