mirror of
https://github.com/certd/certd.git
synced 2026-05-16 13:17:29 +08:00
Merge branch 'client_sync' into v2
# Conflicts: # packages/ui/certd-client/CHANGELOG.md # packages/ui/certd-client/package.json # packages/ui/certd-client/src/api/tools.ts # packages/ui/certd-client/src/components/index.ts # packages/ui/certd-client/src/main.ts # packages/ui/certd-client/src/plugin/fast-crud/index.tsx # packages/ui/certd-client/src/plugin/index.ts # packages/ui/certd-client/src/router/source/framework.ts # packages/ui/certd-client/src/store/modules/page.ts # packages/ui/certd-client/src/style/common.less # packages/ui/certd-client/src/utils/util.env.ts # packages/ui/certd-client/src/views/crud/form/independent/index.vue # packages/ui/certd-client/src/views/framework/register/index.vue # packages/ui/certd-client/vite.config.ts
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</a-form>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent, reactive, ref, toRaw } from "vue";
|
||||
import { useUserStore } from "/src/store/modules/user";
|
||||
export default defineComponent({
|
||||
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
setup() {
|
||||
const userStore = useUserStore();
|
||||
const formRef = ref();
|
||||
const formState = reactive({
|
||||
const formState: any = reactive({
|
||||
username: "",
|
||||
password: "",
|
||||
confirmPassword: ""
|
||||
@@ -82,7 +82,7 @@ export default defineComponent({
|
||||
}
|
||||
};
|
||||
|
||||
const handleFinish = async (values) => {
|
||||
const handleFinish = async (values: any) => {
|
||||
await userStore.register(
|
||||
toRaw({
|
||||
password: formState.password,
|
||||
@@ -91,7 +91,7 @@ export default defineComponent({
|
||||
);
|
||||
};
|
||||
|
||||
const handleFinishFailed = (errors) => {
|
||||
const handleFinishFailed = (errors: any) => {
|
||||
console.log(errors);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user