Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
66d418aa
Commit
66d418aa
authored
Sep 07, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix card alias
parent
0145b453
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/api/cards.ts
src/api/cards.ts
+1
-0
src/ui/BuildDeck/store.ts
src/ui/BuildDeck/store.ts
+8
-2
No files found.
src/api/cards.ts
View file @
66d418aa
...
...
@@ -8,6 +8,7 @@ export interface CardMeta {
}
export
interface
CardData
{
alias
?:
number
;
ot
?:
number
;
setcode
?:
number
;
type
?:
number
;
...
...
src/ui/BuildDeck/store.ts
View file @
66d418aa
...
...
@@ -94,8 +94,14 @@ export const editDeckStore = proxy({
const
max
=
3
;
// 这里无需参考禁卡表
const
numOfSameCards
=
editDeckStore
.
getAll
().
filter
((
c
)
=>
c
.
id
===
card
.
id
).
length
-
(
source
!==
"
search
"
?
1
:
0
);
editDeckStore
.
getAll
()
.
filter
(
(
c
)
=>
c
.
id
===
card
.
id
||
c
.
data
.
alias
===
card
.
id
||
c
.
id
===
card
.
data
.
alias
,
).
length
-
(
source
!==
"
search
"
?
1
:
0
);
if
(
numOfSameCards
>=
max
)
{
result
=
false
;
...
...
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