Commit ba308dc8 by lijiabin

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

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