mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
perf: 自动生成jwtkey,无需手动配置
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
import * as api from "./api";
|
||||
import { Ref, ref } from "vue";
|
||||
import { CrudOptions, useColumns, useFormWrapper } from "@fast-crud/fast-crud";
|
||||
import { notification } from "ant-design-vue";
|
||||
|
||||
const userInfo: Ref = ref({});
|
||||
|
||||
@@ -54,10 +55,14 @@ const passwordFormOptions: CrudOptions = {
|
||||
span: 24
|
||||
},
|
||||
wrapper: {
|
||||
title: "修改密码",
|
||||
width: "500px"
|
||||
},
|
||||
async doSubmit({ form }) {
|
||||
await api.changePassword(form);
|
||||
},
|
||||
async afterSubmit() {
|
||||
notification.success({ message: "修改成功" });
|
||||
}
|
||||
},
|
||||
columns: {
|
||||
@@ -97,7 +102,6 @@ async function changePassword() {
|
||||
const formOptions = buildFormOptions(passwordFormOptions);
|
||||
formOptions.newInstance = true; //新实例打开
|
||||
passwordFormRef.value = await openDialog(formOptions);
|
||||
debugger;
|
||||
console.log(passwordFormRef.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user