Commit d375ee1a by lijiabin

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

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