mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
fix(page-wrapper): fix PageWrapper title not showing
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
<template>
|
||||
<div class="p-4 flex flex-col justify-center items-center">
|
||||
<BasicForm @register="register" />
|
||||
|
||||
<div class="flex justify-center">
|
||||
<a-button @click="resetFields"> 重置 </a-button>
|
||||
<a-button class="ml-4" type="primary" @click="handleSubmit"> 确认 </a-button>
|
||||
<PageWrapper title="修改当前用户密码" content="修改成功后会自动退出当前登录!">
|
||||
<div class="py-8 bg-white flex flex-col justify-center items-center">
|
||||
<BasicForm @register="register" />
|
||||
<div class="flex justify-center">
|
||||
<a-button @click="resetFields"> 重置 </a-button>
|
||||
<a-button class="ml-4" type="primary" @click="handleSubmit"> 确认 </a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</PageWrapper>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
import { BasicForm, useForm } from '/@/components/Form';
|
||||
|
||||
import { formSchema } from './pwd.data';
|
||||
export default defineComponent({
|
||||
name: 'ChangePassword',
|
||||
components: { BasicForm },
|
||||
components: { BasicForm, PageWrapper },
|
||||
setup() {
|
||||
const [register, { validate, resetFields }] = useForm({
|
||||
size: 'large',
|
||||
|
Reference in New Issue
Block a user