Merge pull request 'y11' (#8) from y11 into main

Reviewed-on: #8
This commit is contained in:
西街长安 2025-06-12 20:38:46 +08:00
commit 2ac118d791
3 changed files with 23 additions and 6 deletions

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

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