注册
This commit is contained in:
parent
d7e6b1f5e6
commit
1ee2c6a4b1
33
src/views/Notfound.vue
Normal file
33
src/views/Notfound.vue
Normal file
@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div class="error-page err-404 page">
|
||||
<div class="container">
|
||||
<div class="error-container">
|
||||
<div class="error-info">
|
||||
<h1>404</h1>
|
||||
<p>It seems that the page you are looking for no longer exists.<br>Please contact our <a href="#">help center</a> or go to the <RouterLink to="/home">homepage</RouterLink>.</p>
|
||||
</div>
|
||||
<div class="error-image"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'notfound',
|
||||
data(){
|
||||
return{
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
@ -150,7 +150,7 @@ export default {
|
||||
async GetCode() {
|
||||
this.verification_email()
|
||||
if (!this.error.email) {
|
||||
let res=await SendValidateCode_api(this.form.email)
|
||||
let res=await this.$api.SendValidateCode(this.form.email)
|
||||
this.countdown = 60
|
||||
this.startCountdown()
|
||||
|
||||
@ -172,7 +172,7 @@ export default {
|
||||
this.verification_validatecode()
|
||||
this.verification_check()
|
||||
if (!this.error.username && !this.error.email && !this.error.password && !this.error.validatecode && !this.error.agrement) {
|
||||
let res=await registered_api({
|
||||
let res=await this.$api.register({
|
||||
username: this.form.username,
|
||||
password: this.form.password,
|
||||
email: this.form.email,
|
||||
|
||||
@ -2,10 +2,7 @@ const { defineConfig } = require('@vue/cli-service')
|
||||
|
||||
module.exports = defineConfig({
|
||||
publicPath: process.env.BRANCH_PATH || '/', // 👈 支持动态子路径部署
|
||||
transpileDependencies: true,
|
||||
dev: {
|
||||
devtool: 'source-map',
|
||||
}
|
||||
transpileDependencies: true
|
||||
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user