Commit b46b6d73 authored by xinzhedeai's avatar xinzhedeai

fix: 密码校验 层级

parent b34efdd9
......@@ -74,18 +74,11 @@ export const constantRoutes = [
// }
// ]
},
// {
// path: '/home',
// component: Layout,
// children: [
// {
// path: 'index',
// component: () => import('@/views/system/user/index'),
// name: 'Home',
// meta: { title: '首页', icon: 'dashboard', affix: true }
// }
// ]
// },
{
path: '/index',
// component: Layout,
redirect: '/user/profile',
},
{
path: '/user',
component: Layout,
......
......@@ -243,16 +243,16 @@ export default {
// const AI = `http://220.194.146.65:9045`
// 测试环境
// const BIAN_PO = `http://192.168.3.226:9091`
// const QIAO_LIANG = `http://192.168.3.226:12064`
// const SUI_DAO = `http://192.168.3.226:10081`
// const AI = `http://220.194.146.65:9045`
const BIAN_PO = `http://192.168.3.226:9091`
const QIAO_LIANG = `http://192.168.3.226:12064`
const SUI_DAO = `http://192.168.3.226:10081`
const AI = `http://192.168.3.248:8859`
// 本地
const BIAN_PO = `http://192.168.2.11:81`
const QIAO_LIANG = `http://192.168.2.11:80`
const SUI_DAO = `http://192.168.3.226:10081`
const AI = `http://220.194.146.65:9045`
// const BIAN_PO = `http://192.168.2.11:81`
// const QIAO_LIANG = `http://192.168.2.11:80`
// const SUI_DAO = `http://192.168.2.11:83`
// const AI = `http://192.168.2.11:9527`
//http://localhost:12100/ "Bearer " + getToken()
if (val === 1) {
......@@ -274,7 +274,7 @@ export default {
window.open(link, "_blank");
return;
} else if (val === 4) {
var link = `${AI}?Admin=${this.getCookie(
var link = `${AI}/demo?Admin=${this.getCookie(
"Admin-Token"
)}`;
window.open(link, "_blank");
......@@ -305,7 +305,7 @@ export default {
top: 0.25rem;
left: 7.3rem;
font-size: 0.34rem;
z-index: 999999;
z-index: 4;
cursor: pointer;
color: #9edbf5;
}
......
......@@ -435,7 +435,7 @@ export default {
password: [
{ required: true, message: "用户密码不能为空", trigger: "blur" },
{ min: 8, max: 20, message: '用户密码不能少于8位', trigger: 'blur' },
{ pattern: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*]).{9,}$/, message: "密码需要包含数字、字母、符号", trigger: "blur" }
{ pattern: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*.]).{9,}$/, message: "密码需要包含数字、字母、符号", trigger: "blur" }
],
email: [
{
......@@ -595,7 +595,7 @@ export default {
// inputPattern: /^.{8,20}$/,
// inputErrorMessage: "密码长度需要大于8位,且含数字、字母、符号",
// inputValidator: (value) => {
// if (!/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*]).{9,}$/.test(value)) {
// if (!/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*.]).{9,}$/.test(value)) {
// return "密码长度需要大于8位,且含数字、字母、符号"
// }
// },
......
......@@ -42,7 +42,7 @@ export default {
newPassword: [
{ required: true, message: "新密码不能为空", trigger: "blur" },
{ min: 8, max: 20, message: "长度在 8 到 20 个字符", trigger: "blur" },
{ pattern: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*]).{9,}$/, message: "密码需要包含数字、字母、符号", trigger: "blur" }
{ pattern: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*.]).{9,}$/, message: "密码需要包含数字、字母、符号", trigger: "blur" }
],
confirmPassword: [
{ required: true, message: "确认密码不能为空", trigger: "blur" },
......
......@@ -36,8 +36,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.3.226:8579`,
target: `http://192.168.2.16:8579`,
target: `http://192.168.3.226:8579`,
// target: `http://192.168.2.16:8579`,
// target: `http://182.92.170.89:10080`,
changeOrigin: true,
pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment