Commit d375ee1a by lijiabin

【需求 21096】 chore: 删除一些打印

parent a668df7d
......@@ -255,7 +255,6 @@ const { articleDetail } = defineProps<{
articleDetail: ArticleItemDto
isAudit: boolean // 是否是审核页面
}>()
console.log(typeof articleDetail, 111)
const articleType = computed(() => {
return articleTypeListOptions.find((item) => item.value === articleDetail.type)?.label
})
......
......@@ -410,7 +410,6 @@ const isReal = computed(
type === ArticleTypeEnum.QUESTION,
)
const userAvatar = computed(() => {
console.log(isReal.value ? userInfo.value.avatar : userInfo.value.hiddenAvatar)
return isReal.value ? userInfo.value.avatar : userInfo.value.hiddenAvatar
})
......@@ -423,7 +422,6 @@ const { handleBackTop } = useScrollTop(commentRef)
// 回滚到子评论框
const { handleBackTop: handleBackTopChildren } = useScrollTop(commentItemRefList)
console.log(commentId, 'commentId')
const {
list,
searchParams,
......
......@@ -80,7 +80,6 @@ const handleSubmit = async () => {
content: commentStr.value,
imgUrl: commentImgStr.value,
})
console.log('评论内容:', commentStr.value)
push.success('评论发表成功')
handleClose()
emit('commentSuccess')
......
......@@ -286,7 +286,6 @@ const open = async () => {
// size: 10,
// articleId: articleId,
// })
// console.log('res', data)
// list.value = data.list
// parentComment.value = item
......@@ -294,12 +293,10 @@ const open = async () => {
// currentInlineReplyId.value = null
// commentStr.value = ''
// bottomCommentContent.value = ''
console.log('pid', pid)
await nextTick()
searchParams.value.pid = pid
search()
const { data } = await getCommentDetail(pid)
console.log('data', data)
parentComment.value = data
visible.value = true
}
......@@ -313,7 +310,6 @@ const handleReplyInline = (item: CommentItemDto, index: number) => {
commentStr.value = '' // Clear previous
imgUrl.value = ''
// 聚焦到输入框
console.log('replyToOtherBoxRefList', replyToOtherBoxRefList.value[index]?.focus)
replyToOtherBoxRefList.value[index]?.focus()
}
}
......
......@@ -32,12 +32,7 @@
<div class="flex gap-3 mb-2 items-start">
<!-- 用户头像 -->
<el-avatar
:size="48"
:src="userAvatar"
class="flex-shrink-0"
@click="() => console.log(form)"
>
<el-avatar :size="48" :src="userAvatar" class="flex-shrink-0">
<el-icon>
<IEpUser />
</el-icon>
......@@ -299,7 +294,6 @@ const handlePublish = async (releaseStatus: ReleaseStatusTypeEnum) => {
// resetForm()
forReset()
// form.value.imgUrl = ''
console.log(form.value)
} catch (error) {
console.error(error)
} finally {
......
......@@ -105,7 +105,6 @@ watch(
)
const handleExceed: UploadProps['onExceed'] = (uploadFiles) => {
console.log('uploadFiles', uploadFiles)
if (uploadFiles.length > props.limit) {
push.error(`最多上传 ${props.limit} 个文件`)
return
......@@ -113,7 +112,6 @@ const handleExceed: UploadProps['onExceed'] = (uploadFiles) => {
}
const handleChange: UploadProps['onChange'] = async (uploadFile, uploadFiles) => {
console.log('uploadFiles', uploadFiles)
if (uploadFiles.length > props.limit) {
push.error(`最多上传 ${props.limit} 个文件`)
const index = fileList.value.findIndex((file) => file.uid === uploadFile.uid)
......@@ -134,14 +132,12 @@ const handleChange: UploadProps['onChange'] = async (uploadFile, uploadFiles) =>
const { promise } = uploadFileApi(uploadFile.raw, {
onProgress: (progress) => {
console.log('progress', progress)
uploadPercent.value = progress
},
})
const data = await promise
console.log('data', data)
const url = data.filePath || ''
const name = data.finalName || ''
......
......@@ -166,7 +166,6 @@ const startUpload = async () => {
})
cancelUploadController = cancel
const data = await promise
console.log(data)
// 获取视频元数据
const metadata = await getVideoMetadata(data.filePath)
......
......@@ -43,7 +43,6 @@ export const useScrollTop = (
}
const finish = () => {
console.log('scrollend')
resolve()
}
......
......@@ -188,13 +188,10 @@ const getSecondLevelKey = (route: RouteLocationNormalizedLoadedGeneric) => {
// 取第一级作为key homePage
const pathSegments = route.path.split('/').filter(Boolean)
// console.log(route)
// console.log(pathSegments)
// 如果有params 则取params的id
const key = Object.keys(route.params).length
? pathSegments.slice(0, 2).join('/')
: pathSegments.slice(0, 1).join('/')
// console.log(key, '*********************')
return key
}
......
......@@ -37,8 +37,6 @@ export function clearScrollPosition(path?: string): void {
*/
export const scrollBehavior: RouterScrollBehavior = (to, from, savedPosition) => {
return new Promise((resolve) => {
console.log('触发路由滚动')
// 1. 如果有浏览器保存的位置(前进/后退),优先使用
if (savedPosition) {
resolve(savedPosition)
......@@ -47,7 +45,6 @@ export const scrollBehavior: RouterScrollBehavior = (to, from, savedPosition) =>
// 2. 如果有锚点, 约定 默认不滚动 然后在具体的组件里面onActivated里面 或者watch处理滚动逻辑 以及漫游逻辑等
if (to.hash) {
// console.log(to.hash, window.scrollY)
// resolve({
// top: window.scrollY,
// })
......
......@@ -16,7 +16,6 @@ export const useColumnStore = defineStore('column', () => {
try {
const { data } = await getColumnOptions()
columnList.value = data
console.log(columnList.value, 'columnList')
} catch (error) {
console.error(error)
} finally {
......
......@@ -16,7 +16,6 @@ export const useInterviewStore = defineStore('interview', () => {
try {
const { data } = await getInterviewOptions()
interviewList.value = data
console.log(interviewList.value, 'interviewList')
} catch (error) {
console.error(error)
} finally {
......
......@@ -21,11 +21,9 @@ export const useTagsStore = defineStore('tags', () => {
isLoading = true
try {
const { data } = await getTagList()
console.log(data, 'data')
tagList.value = data.filter((i) => i.type === 'culture')
relatedScenariosTagList.value = data.filter((i) => i.type === 'related_scenarios')
yearRecommendTagList.value = data.filter((i) => i.type === 'year_recommend')
console.log(tagList.value, 'tagList')
} catch (error) {
console.error(error)
} finally {
......
......@@ -16,7 +16,6 @@ export const useVideoStore = defineStore('video', () => {
try {
const { data } = await getVideoOptions()
videoList.value = data
console.log(videoList.value, 'videoList')
} catch (error) {
console.error(error)
} finally {
......
......@@ -95,12 +95,10 @@ export function handleRequestError<T>(axiosError: AxiosError<BackendServiceResul
})
} else if (error.code === 401) {
// 处理401的
console.log(error, '这里是401么', axiosError)
// 重新发送一遍请求
// service.request(axiosError.config as AxiosRequestConfig)
return handleUnAuthorized(axiosError)
} else {
console.log(error, axiosError, '这里是其他错误么')
showErrorMsg(error)
}
// 鉴权错误
......
......@@ -2,7 +2,6 @@ import { app_config } from '@/config'
import Axios from './axios'
// 'http://192.168.2.168:8089'
const baseUrl = app_config[import.meta.env.MODE]?.baseUrl
console.log('baseUrl', baseUrl)
export default new Axios({
baseURL: baseUrl,
timeout: 1000 * 60,
......
......@@ -20,7 +20,6 @@ interface IShareWxOption {
// option.link = url + '#' + option.link
// wx.invoke('shareAppMessage', option, function (res: any) {
// if (res.err_msg == 'openExistedChatWithMsg:ok') {
// console.log(res)
// }
// })
// }
......
......@@ -6,7 +6,6 @@ import * as ww from '@wecom/jssdk'
// export async function initWxConfig() {
// const url = location.href.split('#')[0]
// const response = await getWxSignature(url)
// console.log('response', response, wx)
// const timestamp = response.data.timestamp //时间戳
// const nonceStr = response.data.nonceStr //随机字符串
// const signature = response.data.signature //签名
......@@ -31,7 +30,6 @@ import * as ww from '@wecom/jssdk'
export async function initWxConfig() {
const url = location.href.split('#')[0]
const response = await getWxSignature(url!)
// console.log('response', response)
const timestamp = response.data.timestamp //时间戳
const nonceStr = response.data.nonceStr //随机字符串
const signature = response.data.signature //签名
......
......@@ -100,7 +100,6 @@ const timeRange = computed({
}
},
set(value) {
console.log(value)
if (!value) {
searchParams.value.receiveTimeStart = 0
searchParams.value.receiveTimeEnd = 0
......
......@@ -98,7 +98,6 @@ const onBid = async (item: AuctionItemDto) => {
showConfirmButton: false,
})
const { data } = await getAuctionDetail(item.id)
console.log(data, 'data')
const val = ref(0)
ElMessageBox.confirm('确定参与竞拍吗?', {
confirmButtonText: '确认出价',
......
......@@ -101,7 +101,6 @@ const handleSelectionChange = (selection: BackendColumnListItemDto[]) => {
// 函数弹窗 v-html
const handleShowContent = (row: ArticleItemDto) => {
console.log(row.content)
ElMessageBox.alert(row.content, '内容', {
showCancelButton: false,
showConfirmButton: false,
......
......@@ -102,7 +102,6 @@ const handleSelectionChange = (selection: BackendColumnListItemDto[]) => {
// 函数弹窗 v-html
const handleShowContent = (row: ArticleItemDto) => {
console.log(row.content)
ElMessageBox.alert(row.content, '内容', {
showCancelButton: false,
showConfirmButton: false,
......
......@@ -98,16 +98,6 @@ const selectedRows = ref<BackendColumnListItemDto[]>([])
const handleSelectionChange = (selection: BackendColumnListItemDto[]) => {
selectedRows.value = selection
}
// 函数弹窗 v-html
// const handleShowContent = (row: ArticleItemDto) => {
// console.log(row.content)
// ElMessageBox.alert(row.content, '内容', {
// showCancelButton: false,
// showConfirmButton: false,
// dangerouslyUseHTMLString: true,
// })
// }
</script>
<template>
......
......@@ -95,7 +95,6 @@ const loading = ref(false)
const open = async () => {
const { data } = await getLotteryConfigDetail()
console.log(data)
if (!data) {
resetForm()
} else {
......
......@@ -154,7 +154,6 @@ const { jumpToArticleDetailPage } = useNavigation()
defineExpose({
refresh: (sortLogic?: number) => {
console.log('sortLogic', sortLogic)
searchParams.value.sortLogic = sortLogic
refresh()
},
......
......@@ -422,8 +422,6 @@ const activityStore = useActivityStore()
const yabiStore = useYaBiStore()
const { yabiData } = storeToRefs(yabiStore)
const getThirdLevelKey = (route: RouteLocationNormalizedLoadedGeneric) => {
// console.log(route.fullPath, '三级路由首页')
console.log(route.path, 11111111111111)
// return route.fullPath // fullpath带有query参数
return route.path
}
......@@ -535,7 +533,6 @@ const handleLottery = async () => {
}
const handleTask = async (item: TaskItemDto) => {
console.log(item)
if (item.currentCount === item.limitCount) return
// 先暂时写死
if (item.svgName === 'daily_sign') {
......
......@@ -116,7 +116,6 @@ const { list, total, searchParams, goToPage, changePageSize } = usePageSearch(
const officialAccountList = ref<OfficialAccountItemDto[]>([])
const getIsOfficial = async () => {
const { data } = await hasOfficialAccount()
console.log(data)
officialAccountList.value = data
}
const userInfo = ref<OtherUserInfoDto>({} as OtherUserInfoDto)
......
......@@ -100,7 +100,6 @@ const timeRange = computed({
}
},
set(value) {
console.log(value)
if (!value) {
searchParams.value.receiveTimeStart = 0
searchParams.value.receiveTimeEnd = 0
......
......@@ -297,7 +297,6 @@ onActivated(() => {
(route.query.tagIdList as string)?.split(',').filter(Boolean).map(Number) || []
searchParams.value.deptIdList =
(route.query.deptIdList as string)?.split(',').filter(Boolean) || []
console.log(searchParams.value)
refresh()
})
</script>
......
......@@ -168,7 +168,6 @@ const selcetDept = async () => {
if (departmentList.length > 3) {
return push.warning('最多只能选择3个部门,请重新选择')
}
console.log('选中的部门等等', departmentList)
form.value.departmentList = departmentList
}
......@@ -364,7 +363,6 @@ onActivated(async () => {
})),
}
form.value = obj
console.log('form', form.value)
// 已经同意的案例库 二次修改需要提示
if (data.isAudit === AuditStatusEnum.AGREED) {
......
......@@ -460,7 +460,6 @@ const handleSelectUserAndDept = async () => {
selectedDepartmentIds: selectedDepts.value.map((item) => item.id),
selectedUserIds: selectedUsers.value.map((item) => item.id),
})
console.log(departmentList, userList)
selectedDepts.value = departmentList.map((item) => ({
id: item.id,
name: item.name,
......@@ -542,7 +541,6 @@ const handleClosed = () => {
// 提交表单
const handleSubmit = async (releaseStatus: ReleaseStatusTypeEnum) => {
try {
console.log(form.value, 'form.value')
const validateRes = await formRef.value?.validate()
console.log(validateRes, 'validateRes')
loading.value = true
......@@ -573,7 +571,6 @@ onActivated(async () => {
await nextTick()
if (isEdit.value) {
console.log(route.query.id, '编辑 或者 草稿箱')
// 要编辑回显
const { data } = await getArticleDetail(route.query.id as string)
// 1首先回显基础的信息
......
......@@ -428,13 +428,11 @@ const checkIsOverThreeLine = () => {
const lineHeight = parseFloat(getComputedStyle(questionContentRef.value).lineHeight)
const height = questionContentRef.value!.scrollHeight
const maxHeight = lineHeight * 3
console.log(maxHeight, height)
return height > maxHeight
}
const getQuestionDetail = async () => {
const { data } = await getArticleDetail(questionId)
questionDetail.value = data
console.log(questionDetail.value)
await nextTick()
isOverThreeLine.value = checkIsOverThreeLine()
}
......
......@@ -73,7 +73,6 @@ const rules: FormRules = {
const open = (userInfo: UpdateUserInfoDto) => {
dialogVisible.value = true
form.value = userInfo
console.log(form.value)
}
// 关闭弹窗方法
......
......@@ -107,7 +107,6 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
)
const handleTask = async (item: TaskItemDto) => {
console.log(item)
if (item.svgName === 'daily_sign') {
router.push(`/homePage/homeTab#levelContainerRef`)
} else if (item.svgName === 'valid_comments') {
......
......@@ -312,7 +312,6 @@ const handleEdit = () => {
const officialAccountList = ref<OfficialAccountItemDto[]>([])
const getIsOfficial = async () => {
const { data } = await hasOfficialAccount()
console.log(data)
officialAccountList.value = data
}
......@@ -377,7 +376,6 @@ const handleSwitchAccount = async () => {
userId: userInfo.value.userId,
cutEmail: selectedEmail.value,
})
console.log(data)
localStorage.clear()
await userStore.getUserInfoByCode({
code: data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment