Commit b46b6d73 authored by xinzhedeai's avatar xinzhedeai

fix: 密码校验 层级

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