-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
748 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { post } from '@/utils/request/index'; | ||
import type{ Register } from "./type"; | ||
|
||
export function fetchRegister<T>(data: Register ) { | ||
return post<T>({ | ||
url: '/api/user/register', | ||
data | ||
}); | ||
} | ||
export function fetchLogin<T>(data: Register ) { | ||
return post<T>({ | ||
url: '/api/user/login', | ||
data | ||
}); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface Register { | ||
userAccount: string, | ||
userPassword: string, | ||
checkPassword: string, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
<template> | ||
<a-drawer :open="visible" class="custom-class" root-class-name="root-class-name" :root-style="{ color: 'blue' }" | ||
style="color: red" title="Basic Drawer" placement="right" @after-open-change="afterOpenChange"> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
</a-drawer> | ||
|
||
<n-drawer :show="open" :width="700"> | ||
<n-drawer-content title="个人设置" closable> | ||
</n-drawer-content> | ||
</n-drawer> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { watch } from "vue"; | ||
interface Props { | ||
visible: boolean | ||
import { defineComponent, ref } from 'vue' | ||
interface Iprops { | ||
open: boolean | ||
} | ||
const props = defineProps<Props>() | ||
console.log('===================================='); | ||
console.log(props?.visible); | ||
console.log('===================================='); | ||
</script> | ||
defineProps<Iprops>() | ||
<style scoped lang="less"></style> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.