From 1ee2c6a4b1fac0d7edf6ee46b92dbfee7f0254c7 Mon Sep 17 00:00:00 2001 From: chuyang02 <208526470@qq.com> Date: Thu, 12 Jun 2025 19:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Notfound.vue | 33 +++++++++++++++++++++++++++++++++ src/views/auth/Register.vue | 4 ++-- vue.config.js | 5 +---- 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 src/views/Notfound.vue diff --git a/src/views/Notfound.vue b/src/views/Notfound.vue new file mode 100644 index 0000000..c48bc13 --- /dev/null +++ b/src/views/Notfound.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/auth/Register.vue b/src/views/auth/Register.vue index a53df63..107f60c 100644 --- a/src/views/auth/Register.vue +++ b/src/views/auth/Register.vue @@ -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, diff --git a/vue.config.js b/vue.config.js index d8208ab..1c6492e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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 })