commit
9ce7a162c6
20
src/views/Notfound.vue
Normal file
20
src/views/Notfound.vue
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<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'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -150,7 +150,7 @@ export default {
|
|||||||
async GetCode() {
|
async GetCode() {
|
||||||
this.verification_email()
|
this.verification_email()
|
||||||
if (!this.error.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.countdown = 60
|
||||||
this.startCountdown()
|
this.startCountdown()
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ export default {
|
|||||||
this.verification_validatecode()
|
this.verification_validatecode()
|
||||||
this.verification_check()
|
this.verification_check()
|
||||||
if (!this.error.username && !this.error.email && !this.error.password && !this.error.validatecode && !this.error.agrement) {
|
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,
|
username: this.form.username,
|
||||||
password: this.form.password,
|
password: this.form.password,
|
||||||
email: this.form.email,
|
email: this.form.email,
|
||||||
|
|||||||
@ -2,10 +2,7 @@ const { defineConfig } = require('@vue/cli-service')
|
|||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
publicPath: process.env.BRANCH_PATH || '/', // 👈 支持动态子路径部署
|
publicPath: process.env.BRANCH_PATH || '/', // 👈 支持动态子路径部署
|
||||||
transpileDependencies: true,
|
transpileDependencies: true
|
||||||
dev: {
|
|
||||||
devtool: 'source-map',
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user