提交 374cd924 作者: 郁骅焌

红线修复

上级 c6787184
...@@ -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>
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论