Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
word_tree_config
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
template admin
word_tree_config
Commits
abc22a92
Commit
abc22a92
authored
Oct 26, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
5e40f738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
index.js
play/index.js
+18
-8
No files found.
play/index.js
View file @
abc22a92
...
...
@@ -149,20 +149,30 @@ new Vue({
}
},
searchWords
()
{
axios
.
get
(
`https://api.iplayabc.com/ciba/api/v1/word/reviews?daylimit=20&totallimit=100&uid=
${
this
.
searchQuery
}
`
)
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
)
{
this
.
currentRows
=
response
.
data
.
rows
;
$
.
ajax
({
url
:
`https://api.iplayabc.com/ciba/api/v1/word/reviews`
,
method
:
'
GET
'
,
data
:
{
daylimit
:
20
,
totallimit
:
100
,
uid
:
this
.
searchQuery
},
dataType
:
'
json
'
,
success
:
(
response
)
=>
{
if
(
response
.
code
===
200
)
{
this
.
currentRows
=
response
.
rows
;
this
.
showControlPanel
=
false
;
this
.
breadcrumb
=
[{
text_en
:
'
记忆之塔
'
}];
}
else
{
this
.
$message
.
error
(
'
查询失败
'
);
}
}
)
.
catch
(
error
=>
{
console
.
error
(
'
Error:
'
,
error
);
}
,
error
:
(
jqXHR
,
textStatus
,
errorThrown
)
=>
{
console
.
error
(
'
Error:
'
,
textStatus
,
errorThrown
);
this
.
$message
.
error
(
'
查询出错
'
);
});
}
});
this
.
searchQuery
=
''
;
},
},
mounted
()
{
...
...
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