This commit is contained in:
chuyang02 2025-06-12 19:52:55 +08:00
parent d7e6b1f5e6
commit 1ee2c6a4b1
3 changed files with 36 additions and 6 deletions

33
src/views/Notfound.vue Normal file
View 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>

View File

@ -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,

View File

@ -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',
}
}) })