| | |
| | | <div class="name">密码:</div> |
| | | <div class="info pwd"> |
| | | ******** |
| | | <el-button type="plain" @click="isShow = true">修改密码</el-button> |
| | | <el-button type="default" @click="isShow = true">修改密码</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script setup> |
| | | import {userDetail} from '@/api/login' |
| | | import {removeToken} from '@/utils/auth' |
| | | import {ElMessageBox} from "element-plus"; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const form = ref({}) |
| | | const preUrl = ref(import.meta.env.VITE_APP_IMG_BASEURL) |
| | |
| | | } |
| | | } |
| | | |
| | | // 退出登录 |
| | | const loginOut = () => { |
| | | ElMessageBox.confirm('确定注销并退出系统吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then((e) => { |
| | | removeToken() |
| | | window.location.reload(); |
| | | |
| | | }) |
| | | } |
| | | |
| | | //修改密码 |
| | | const rules = { |
| | | oldPassword: [ |