From 975dafef7c68a67c3b7ccace25a9ef7f0cc8c865 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Thu, 21 Nov 2024 11:18:25 +0800 Subject: [PATCH] clear --- src/layout/adder/CustomAdder.tsx | 1 - src/layout/background/index.tsx | 1 - src/layout/background/useResource.ts | 4 ---- src/layout/grid/AiSetting.tsx | 1 - src/layout/grid/BlockWrapper.tsx | 1 - src/layout/grid/Feedback.tsx | 1 - src/layout/grid/WelcomePage.tsx | 1 - src/layout/header/search/useSearchStore.ts | 2 -- src/layout/sider/ModeSwitch.tsx | 7 +------ src/user/AvatarCircle.tsx | 4 ---- src/user/LoginModal.tsx | 1 - src/user/useUserStore.ts | 4 ---- src/utils/jump.ts | 1 - src/utils/useStatisticStore.ts | 2 -- src/widgets/game/Large.tsx | 1 - 15 files changed, 1 insertion(+), 31 deletions(-) diff --git a/src/layout/adder/CustomAdder.tsx b/src/layout/adder/CustomAdder.tsx index 206a96b..4610bd3 100644 --- a/src/layout/adder/CustomAdder.tsx +++ b/src/layout/adder/CustomAdder.tsx @@ -270,7 +270,6 @@ export default defineComponent(() => { return } if (store.editBlockItem !== null) { - console.log(123) layout.changeBlock(form, store.editBlockItem.id) useRouterStore().back() store.editBlockItem = null diff --git a/src/layout/background/index.tsx b/src/layout/background/index.tsx index c14ef7c..e0b8937 100644 --- a/src/layout/background/index.tsx +++ b/src/layout/background/index.tsx @@ -85,7 +85,6 @@ export default defineComponent({ } } ) - watch(pair, console.log) return () => (
diff --git a/src/layout/background/useResource.ts b/src/layout/background/useResource.ts index b065049..4570f87 100644 --- a/src/layout/background/useResource.ts +++ b/src/layout/background/useResource.ts @@ -48,7 +48,6 @@ export default function useResource(tag: Ref, type: string) { if (!res) return const item = res.find((item) => item.tag === val) if (item) { - console.log('是是视频'); resource.video = URL.createObjectURL(item.file) resource.type = 'local' @@ -98,11 +97,8 @@ export default function useResource(tag: Ref, type: string) { if (!res) return const item = res.find((item) => item.tag === val) if (!item) return - console.log(item); const url = URL.createObjectURL(item.file) - console.log('本地资源'); - console.log(url); resource.image = item.type === 'image' ? url : '' diff --git a/src/layout/grid/AiSetting.tsx b/src/layout/grid/AiSetting.tsx index 82577b3..4ef0bba 100644 --- a/src/layout/grid/AiSetting.tsx +++ b/src/layout/grid/AiSetting.tsx @@ -17,7 +17,6 @@ export default defineComponent({ isSearch: settings.state.autoUseAi === '' }), (val) => { - console.log(val) sendParent([ 'configAI', { diff --git a/src/layout/grid/BlockWrapper.tsx b/src/layout/grid/BlockWrapper.tsx index 908202f..f307622 100644 --- a/src/layout/grid/BlockWrapper.tsx +++ b/src/layout/grid/BlockWrapper.tsx @@ -82,7 +82,6 @@ export default defineComponent({ if (!oldBlock || oldBlock.link.startsWith('id:')) return if (link.startsWith('id:')) { // 本身就是文件夹 - console.log(123) const id = link.slice(3) diff --git a/src/layout/grid/Feedback.tsx b/src/layout/grid/Feedback.tsx index 3c6dab6..89827d6 100644 --- a/src/layout/grid/Feedback.tsx +++ b/src/layout/grid/Feedback.tsx @@ -108,7 +108,6 @@ export default defineComponent(() => { > ), onOk() { - console.log('OK') ins.destroy() }, onCancel() { diff --git a/src/layout/grid/WelcomePage.tsx b/src/layout/grid/WelcomePage.tsx index 633b7c6..8764317 100644 --- a/src/layout/grid/WelcomePage.tsx +++ b/src/layout/grid/WelcomePage.tsx @@ -198,7 +198,6 @@ export default defineComponent(() => { }) uploadLocal(file).then((res2) => { val.background = res2 - console.log(res2); }) } diff --git a/src/layout/header/search/useSearchStore.ts b/src/layout/header/search/useSearchStore.ts index b437d71..3792656 100644 --- a/src/layout/header/search/useSearchStore.ts +++ b/src/layout/header/search/useSearchStore.ts @@ -53,10 +53,8 @@ export default defineStore('search', () => { } ) const debouncedHandler = debounce((newValue) => { - console.log('数值改变并已防抖处理:', newValue) request("GET", `/api/app/searchBars?keyword=${newValue || 'undefine'}`).then((res) => { addList.value = res - console.log(addList.value); }) }, 500) // diff --git a/src/layout/sider/ModeSwitch.tsx b/src/layout/sider/ModeSwitch.tsx index b8c8c83..37ee3d5 100644 --- a/src/layout/sider/ModeSwitch.tsx +++ b/src/layout/sider/ModeSwitch.tsx @@ -20,12 +20,7 @@ export default defineComponent(() => { }, { immediate: true } ) - watch( - () => selected.value, - (val) => { - console.log(val) - } - ) + return () => (
{ const store = useUserStore() - watch(() => store.profile.avatar, (e) => { - console.log(e); - console.log('avatar change') - }) return () => { return (
{ }).then((res) => { if (res) { clearInterval(it) - console.log(res) user.token = res router.back() message.success('登录成功') diff --git a/src/user/useUserStore.ts b/src/user/useUserStore.ts index 459a666..7ba1e93 100644 --- a/src/user/useUserStore.ts +++ b/src/user/useUserStore.ts @@ -32,8 +32,6 @@ function areArraysEqualById(arr1: Block[], arr2: Block[]): boolean { // 检查 arr1 中的每个 item 是否在 arr2 中存在,并且值是否相同 for (let i = 0; i < arr1.length; i++) { - console.log(arr1[i].id) - console.log(arr2[i].id) if (arr1[i].id !== arr2[i].id) { return false @@ -90,7 +88,6 @@ export default defineStore('user', () => { watch(token, async (val) => { if (!val) return - console.log(val) const data = await request('GET', '/api/backup') if (!data) { @@ -126,7 +123,6 @@ export default defineStore('user', () => { } const comineData = () => { if (!remoteAddList.value) return - console.log({ ...remoteAddList.value }) remoteAddList.value.map((item) => { if (item.link) layout.state.content[layout.state.current].pages[layout.state.currentPage].list.push(item) diff --git a/src/utils/jump.ts b/src/utils/jump.ts index c676f8e..70639ec 100644 --- a/src/utils/jump.ts +++ b/src/utils/jump.ts @@ -14,7 +14,6 @@ const fetchAdverConfig = async () => { request('GET', '/api/app/adverLinks/params'), request('GET', '/api/app/adverLinks/link') ]).then((res: any) => { - console.log('----', res) const result: AdverData = { links: [], params: [], expiration: Date.now() + 1000 * 60 * 60 * 4 } if (res[0].status === 'fulfilled') { result.params = res[0].value diff --git a/src/utils/useStatisticStore.ts b/src/utils/useStatisticStore.ts index 96b0922..837c8f1 100644 --- a/src/utils/useStatisticStore.ts +++ b/src/utils/useStatisticStore.ts @@ -17,7 +17,6 @@ export default defineStore('statistic', () => { list.value.push(item) } const debouncedHandler = debounce((newValue: StatisticType[]) => { - console.log('数值改变并已防抖处理:', newValue) if (newValue.length === 0) return request("POST", `/api/app/statistics`, { data: newValue.map((item) => ({ @@ -33,7 +32,6 @@ export default defineStore('statistic', () => { }) }, 2500) // watch(list, (newValue) => { - console.log(list); debouncedHandler(newValue) }, { diff --git a/src/widgets/game/Large.tsx b/src/widgets/game/Large.tsx index d9067fd..8a31110 100644 --- a/src/widgets/game/Large.tsx +++ b/src/widgets/game/Large.tsx @@ -29,7 +29,6 @@ export default defineComponent(() => { watch( selectType, (val) => { - console.log(val); appList.value = [] loading.value = true