Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
911d453d
Commit
911d453d
authored
Mar 22, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决Eslint报错
parent
ab0a5ccb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
src/components/NavMenu.vue
+1
-1
src/components/TableView.vue
+0
-14
src/router/index.ts
+1
-1
No files found.
src/components/NavMenu.vue
View file @
911d453d
...
@@ -143,7 +143,7 @@ const rules = reactive<FormRules<PasswordForm>>({
...
@@ -143,7 +143,7 @@ const rules = reactive<FormRules<PasswordForm>>({
message
:
'请再次输入密码'
,
message
:
'请再次输入密码'
,
},
},
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
_
rule
,
value
,
callback
)
=>
{
if
(
value
!==
passwordForm
.
value
.
newPwd
)
{
if
(
value
!==
passwordForm
.
value
.
newPwd
)
{
callback
(
new
Error
(
'两次密码不一致'
))
callback
(
new
Error
(
'两次密码不一致'
))
}
else
{
}
else
{
...
...
src/components/TableView.vue
View file @
911d453d
...
@@ -4,18 +4,5 @@
...
@@ -4,18 +4,5 @@
</div>
</div>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
defineProps
}
from
'vue'
const
prop
=
defineProps
({
// 表头
header
:
{
type
:
Array
,
default
:
()
=>
[],
},
// 数据
data
:
{
type
:
Array
,
default
:
()
=>
[],
},
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
></
style
>
\ No newline at end of file
src/router/index.ts
View file @
911d453d
...
@@ -52,7 +52,7 @@ const router = createRouter({
...
@@ -52,7 +52,7 @@ const router = createRouter({
},
},
],
],
})
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
_
from
,
next
)
=>
{
const
token
=
getToken
()
const
token
=
getToken
()
if
(
!
token
&&
to
.
path
!==
'/user/login'
)
{
if
(
!
token
&&
to
.
path
!==
'/user/login'
)
{
next
({
path
:
'/user/login'
})
next
({
path
:
'/user/login'
})
...
...
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