Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
shop-vite-main
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
front-base-project
shop-vite-main
Commits
374cd924
提交
374cd924
authored
12月 25, 2024
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
红线修复
上级
c6787184
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
48 行删除
+5
-48
index.vue
src/views/system/personalCenter/index.vue
+1
-44
UserAvatar.vue
...ws/system/personalCenter/vabAutoComponents/UserAvatar.vue
+4
-4
没有找到文件。
src/views/system/personalCenter/index.vue
浏览文件 @
374cd924
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<user-info
:user=
"state.user"
/>
<user-info
:user=
"state.user"
/>
</el-col>
</el-col>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"
账号绑定
"
name=
"second"
>
<el-tab-pane
label=
"
密码修改
"
name=
"second"
>
<reset-pwd
/>
<reset-pwd
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
...
@@ -74,7 +74,6 @@
...
@@ -74,7 +74,6 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
getUserProfile
}
from
'/@/api/userManagement'
import
{
getUserProfile
}
from
'/@/api/userManagement'
import
{
useUserStore
}
from
'/@/store/modules/user'
defineOptions
({
defineOptions
({
name
:
'PersonalCenter'
,
name
:
'PersonalCenter'
,
...
@@ -86,27 +85,8 @@ const state = reactive<any>({
...
@@ -86,27 +85,8 @@ const state = reactive<any>({
postGroup
:
{},
postGroup
:
{},
})
})
const
userStore
=
useUserStore
()
const
{
avatar
}
=
storeToRefs
(
userStore
)
const
_description
=
decodeURI
(
'
\
u5bcc
\
u5728
\
u672f
\
u6570
\
uff0c
\
u4e0d
\
u5728
\
u52b3
\
u8eab
\
uff1b
\
u5229
\
u5728
\
u52bf
\
u5c45
\
uff0c
\
u4e0d
\
u5728
\
u529b
\
u8015
\
u3002'
)
const
activeName
=
ref
<
string
>
(
'first'
)
const
activeName
=
ref
<
string
>
(
'first'
)
const
form
=
reactive
<
any
>
({
fullName
:
'admin'
,
nickname
:
'good luck'
,
sex
:
2
,
description
:
_description
,
})
const
inputRef
=
ref
<
any
>
(
null
)
const
dynamicTags
=
ref
<
any
>
([
'腹黑'
,
'怕麻烦'
,
'小仙女'
,
'仙气飘飘'
])
const
inputVisible
=
ref
<
boolean
>
(
false
)
const
inputValue
=
ref
<
string
>
(
''
)
onMounted
(()
=>
{
onMounted
(()
=>
{
getUser
()
getUser
()
})
})
...
@@ -118,29 +98,6 @@ function getUser() {
...
@@ -118,29 +98,6 @@ function getUser() {
state
.
postGroup
=
response
.
postGroup
state
.
postGroup
=
response
.
postGroup
})
})
}
}
const
onSubmit
=
()
=>
{
$baseMessage
(
'模拟保存成功'
,
'success'
,
'hey'
)
}
const
handleClose
=
(
tag
:
string
)
=>
{
dynamicTags
.
value
.
splice
(
dynamicTags
.
value
.
indexOf
(
tag
),
1
)
}
const
showInput
=
()
=>
{
inputVisible
.
value
=
true
nextTick
(()
=>
{
inputRef
.
value
.
focus
()
})
}
const
handleInputConfirm
=
()
=>
{
if
(
inputValue
.
value
)
{
dynamicTags
.
value
.
push
(
inputValue
.
value
)
}
inputVisible
.
value
=
false
inputValue
.
value
=
''
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/system/personalCenter/vabAutoComponents/UserAvatar.vue
浏览文件 @
374cd924
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<br
/>
<br
/>
<el-row>
<el-row>
<el-col
:lg=
"2"
:md=
"2"
>
<el-col
:lg=
"2"
:md=
"2"
>
<el-upload
action=
"#"
:before-upload=
"beforeUpload"
:
http-request=
"requestUpload"
:
show-file-list=
"false"
>
<el-upload
action=
"#"
:before-upload=
"beforeUpload"
:show-file-list=
"false"
>
<el-button>
<el-button>
选择
选择
<el-icon
class=
"el-icon--right"
><upload
/></el-icon>
<el-icon
class=
"el-icon--right"
><upload
/></el-icon>
...
@@ -94,9 +94,9 @@ function modalOpened() {
...
@@ -94,9 +94,9 @@ function modalOpened() {
}
}
/** 覆盖默认上传行为 */
/** 覆盖默认上传行为 */
function
requestUpload
()
{
//
function requestUpload() {
console
.
log
(
'覆盖默认上传行为'
)
//
console.log('覆盖默认上传行为')
}
//
}
/** 向左旋转 */
/** 向左旋转 */
function
rotateLeft
()
{
function
rotateLeft
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论