mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-07-02 08:40:26 +08:00
finish settings/contact page
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<PageWrapper title="修改当前联系方式" content="修改成功后会自动退出当前登录!">
|
||||
<PageWrapper title="修改当前联系方式" content="修改成功后会通知课程组长!">
|
||||
<div class="py-8 bg-white flex flex-col justify-center items-center">
|
||||
<BasicForm @register="register" />
|
||||
<div class="flex justify-center">
|
||||
@@ -14,7 +14,7 @@
|
||||
import { PageWrapper } from '/@/components/Page'
|
||||
import { BasicForm, useForm } from '/@/components/Form'
|
||||
|
||||
import { formSchema } from './pwd.data'
|
||||
import { formSchema } from './contact.data'
|
||||
export default defineComponent({
|
||||
name: 'ChangeContact',
|
||||
components: { BasicForm, PageWrapper },
|
||||
@@ -30,10 +30,10 @@
|
||||
async function handleSubmit() {
|
||||
try {
|
||||
const values = await validate()
|
||||
const { passwordOld, passwordNew } = values
|
||||
const { contactOld, contactNew } = values
|
||||
|
||||
// TODO custom api
|
||||
console.log(passwordOld, passwordNew)
|
||||
console.log(contactOld, contactNew)
|
||||
// const { router } = useRouter()
|
||||
// router.push(pageEnum.BASE_LOGIN)
|
||||
} catch (error) {}
|
||||
|
||||
Reference in New Issue
Block a user