Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
ba308dc8
Commit
ba308dc8
authored
Apr 28, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 21402】 chore: 删除无用代码
parent
3a7882f6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
14 deletions
+7
-14
index.vue
src/components/common/MentionList/index.vue
+0
-2
vCommentParse.ts
src/directives/vCommentParse.ts
+0
-1
index.vue
src/layoutCulture/index.vue
+0
-1
user.ts
src/stores/user.ts
+0
-1
index.vue
src/views/publishLongArticle/index.vue
+5
-5
index.vue
src/views/userPage/index.vue
+2
-4
No files found.
src/components/common/MentionList/index.vue
View file @
ba308dc8
...
...
@@ -77,11 +77,9 @@ onUpdated(() => {
onMounted
(()
=>
{
show
.
value
=
true
console
.
log
(
'onMounted'
)
})
onBeforeUnmount
(()
=>
{
console
.
log
(
'onBeforeUnmount'
)
document
.
removeEventListener
(
'mousedown'
,
handleDocumentPointerDown
)
})
...
...
src/directives/vCommentParse.ts
View file @
ba308dc8
...
...
@@ -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
?.()
}
...
...
src/layoutCulture/index.vue
View file @
ba308dc8
...
...
@@ -217,7 +217,6 @@ const isDropdownHover = ref(false)
// 首页触发CG相关引导
onMounted
(()
=>
{
console
.
log
(
1222
)
activityStore
.
triggerCgGuide
()
})
</
script
>
...
...
src/stores/user.ts
View file @
ba308dc8
...
...
@@ -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
()
=>
{
...
...
src/views/publishLongArticle/index.vue
View file @
ba308dc8
...
...
@@ -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
()
...
...
src/views/userPage/index.vue
View file @
ba308dc8
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment