From ff8a9d48dd8d6e4e6504fa5b7b2a31605e54d41f Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 7 Feb 2025 14:40:54 +0800 Subject: [PATCH] up --- src/views/organize/components/addIndex.vue | 2 +- src/views/system/user.vue | 4 ++++ vue.config.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/organize/components/addIndex.vue b/src/views/organize/components/addIndex.vue index 6d6c675..445e7fd 100644 --- a/src/views/organize/components/addIndex.vue +++ b/src/views/organize/components/addIndex.vue @@ -89,7 +89,7 @@ form: { name: '', originize_type_id: "", - area_id: '', + area_id: "", sort: 0, description: '', originize_type_name: '', diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 49b88b4..4dee2e8 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -278,6 +278,10 @@ }, submitForm(formName) { var that = this; + if(that.form.password.length<6){ + this.$Message.warning('密码不能少于6位') + return + } this.$refs[formName].validate((valid) => { if (valid) { save(that.form).then(response => { diff --git a/vue.config.js b/vue.config.js index 5201527..c82404e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', - outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin', + outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin_test', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项