diff --git a/src/utils/cat/utils.js b/src/utils/cat/utils.js deleted file mode 100644 index 7ad2553b475bda160e2e6b95624558e3abf864f4..0000000000000000000000000000000000000000 --- a/src/utils/cat/utils.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - * @作者:AMEN - * @官网:https://www.ymypay.cn/ - * @博客:https://blog.ymypay.cn/ - * 湮灭网络工作室 - */ -export const uuid = () => { - function S4() { - return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); - } - return S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4(); -} diff --git a/src/views/desktop/background/Background.vue b/src/views/desktop/background/Background.vue index 2444313ce80cb60fe2c6fcc913f66126c97d3ca0..17d868d6f676b57722eb4469a80cf8cfd6850d46 100644 --- a/src/views/desktop/background/Background.vue +++ b/src/views/desktop/background/Background.vue @@ -4,7 +4,7 @@
@@ -40,12 +40,11 @@ const getLocalBackground = async () => { let bg = ''; if (src) { - if (type === 'base64' || type === 'video') { + if (type === 'base64' || type === 'video' || type === 'cdnImage') { bg = src; } else { bg = getStaticImage(src) || defaultBackground; } - backgroundSrc.value = bg; } else { backgroundSrc.value = defaultBackground; @@ -63,7 +62,7 @@ onMounted(async () => { }); const style = computed((): CSSProperties => { - if (comBackground.value.type === 'image' || comBackground.value.type === 'base64') { + if (comBackground.value.type === 'image' || comBackground.value.type === 'base64' || comBackground.value.type === 'cdnImage') { return { background: `url('${backgroundSrc.value}')`, filter: ` diff --git a/src/views/desktop/setting/wallpaper/CatBody.vue b/src/views/desktop/setting/wallpaper/CatBody.vue index e809396bd535ba5912681cae5665f50010327ad9..5a23acb2f4aac20f55a197039692aba30a182a22 100644 --- a/src/views/desktop/setting/wallpaper/CatBody.vue +++ b/src/views/desktop/setting/wallpaper/CatBody.vue @@ -1,40 +1,66 @@