Commit ba308dc8 by lijiabin

【需求 21402】 chore: 删除无用代码

parent 3a7882f6
......@@ -77,11 +77,9 @@ onUpdated(() => {
onMounted(() => {
show.value = true
console.log('onMounted')
})
onBeforeUnmount(() => {
console.log('onBeforeUnmount')
document.removeEventListener('mousedown', handleDocumentPointerDown)
})
......
......@@ -10,7 +10,6 @@ export const vParseComment: Directive = {
const id = (item as HTMLElement).dataset.id
const isReal = (item as HTMLElement).dataset.isreal
if (id && isReal) {
console.log(id, 'id')
router.push(`/otherUserPage/${id}/${isReal}`)
onClickedCallback?.()
}
......
......@@ -217,7 +217,6 @@ const isDropdownHover = ref(false)
// 首页触发CG相关引导
onMounted(() => {
console.log(1222)
activityStore.triggerCgGuide()
})
</script>
......
......@@ -40,7 +40,6 @@ export const useUserStore = defineStore('user', () => {
cutEmail?: string
}) => {
const { data } = await loginByCode({ code, isCodeLogin, cutEmail })
console.log(data)
setUserInfoAndToken(data)
}
const getNewToken = async () => {
......
......@@ -571,11 +571,11 @@ const handleSubmit = async (releaseStatus: ReleaseStatusTypeEnum) => {
const validateRes = await formRef.value?.validate()
console.log(validateRes, 'validateRes')
loading.value = true
const res =
form.value.type === ArticleTypeEnum.PRACTICE
? await addOrUpdatePractice(transFormData(releaseStatus))
: await addOrUpdateArticle(transFormData(releaseStatus))
console.log(res)
if (form.value.type === ArticleTypeEnum.PRACTICE) {
await addOrUpdatePractice(transFormData(releaseStatus))
} else {
await addOrUpdateArticle(transFormData(releaseStatus))
}
drawerVisible.value = false
push.success(releaseStatus === ReleaseStatusTypeEnum.PUBLISH ? '发布成功' : '存草稿成功')
resetForm()
......
......@@ -184,10 +184,9 @@ const { showOnlineTime } = storeToRefs(useOnlineTimeStore())
const router = useRouter()
const route = useRoute()
// 当前激活的菜单 用计算属性 好办法!
// 当前激活的菜单 用计算属性
const activeMenu = computed(() => {
const path = route.path
console.log(path, 'path')
if (path.includes('userPage')) {
return path || '/userPage/selfPublish'
}
......@@ -195,7 +194,7 @@ const activeMenu = computed(() => {
})
const getThirdLevelKey = (route: RouteLocationNormalizedLoadedGeneric) => {
console.log(route.fullPath, '三级路由用户信息页面')
// console.log(route.fullPath, '三级路由用户信息页面')
return route.path
}
const componentRef = useTemplateRef<{
......@@ -320,7 +319,6 @@ const changeMenu = (key: string | (() => string)) => {
}
const handleEdit = () => {
console.log('修改资料')
editUserInfoRef.value?.open({
hiddenAvatar: userInfo.value.hiddenAvatar,
hiddenName: userInfo.value.hiddenName,
......
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