This commit is contained in:
expdsn 2024-11-21 11:18:25 +08:00
parent c00907127c
commit 975dafef7c
15 changed files with 1 additions and 31 deletions

View File

@ -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

View File

@ -85,7 +85,6 @@ export default defineComponent({
}
}
)
watch(pair, console.log)
return () => (
<div class="absolute left-0 top-0 w-full h-screen z-0">

View File

@ -48,7 +48,6 @@ export default function useResource(tag: Ref<string>, 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<string>, 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 : ''

View File

@ -17,7 +17,6 @@ export default defineComponent({
isSearch: settings.state.autoUseAi === ''
}),
(val) => {
console.log(val)
sendParent([
'configAI',
{

View File

@ -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)

View File

@ -108,7 +108,6 @@ export default defineComponent(() => {
></Table>
),
onOk() {
console.log('OK')
ins.destroy()
},
onCancel() {

View File

@ -198,7 +198,6 @@ export default defineComponent(() => {
})
uploadLocal(file).then((res2) => {
val.background = res2
console.log(res2);
})
}

View File

@ -53,10 +53,8 @@ export default defineStore('search', () => {
}
)
const debouncedHandler = debounce((newValue) => {
console.log('数值改变并已防抖处理:', newValue)
request<SearchAdType[]>("GET", `/api/app/searchBars?keyword=${newValue || 'undefine'}`).then((res) => {
addList.value = res
console.log(addList.value);
})
}, 500) //

View File

@ -20,12 +20,7 @@ export default defineComponent(() => {
},
{ immediate: true }
)
watch(
() => selected.value,
(val) => {
console.log(val)
}
)
return () => (
<div
class="w-[56px] h-[56px] relative cursor-pointer"

View File

@ -8,11 +8,7 @@ addIcons(FaUserAlt)
export default defineComponent(() => {
const store = useUserStore()
watch(() => store.profile.avatar, (e) => {
console.log(e);
console.log('avatar change')
})
return () => {
return (
<div

View File

@ -32,7 +32,6 @@ export default defineComponent(() => {
}).then((res) => {
if (res) {
clearInterval(it)
console.log(res)
user.token = res
router.back()
message.success('登录成功')

View File

@ -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<Layout>('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)

View File

@ -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

View File

@ -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)
}, {

View File

@ -29,7 +29,6 @@ export default defineComponent(() => {
watch(
selectType,
(val) => {
console.log(val);
appList.value = []
loading.value = true