Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
山
山西华远大屏
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lichunliang
山西华远大屏
Commits
b46b6d73
Commit
b46b6d73
authored
Feb 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 密码校验 层级
parent
b34efdd9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
27 deletions
+20
-27
index.js
src/router/index.js
+5
-12
bigscreen.vue
src/views/bigscreen.vue
+10
-10
index.vue
src/views/system/user/index.vue
+2
-2
resetPwd.vue
src/views/system/user/profile/resetPwd.vue
+1
-1
vue.config.js
vue.config.js
+2
-2
No files found.
src/router/index.js
View file @
b46b6d73
...
...
@@ -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
,
...
...
src/views/bigscreen.vue
View file @
b46b6d73
...
...
@@ -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
;
}
...
...
src/views/system/user/index.vue
View file @
b46b6d73
...
...
@@ -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位,且含数字、字母、符号"
// }
// },
...
...
src/views/system/user/profile/resetPwd.vue
View file @
b46b6d73
...
...
@@ -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
"
},
...
...
vue.config.js
View file @
b46b6d73
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment