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
8d4f9e94
Commit
8d4f9e94
authored
Oct 27, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
8251d517
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
index.js
play/index.js
+4
-7
No files found.
play/index.js
View file @
8d4f9e94
...
@@ -31,10 +31,7 @@ new Vue({
...
@@ -31,10 +31,7 @@ new Vue({
},
},
compDomain
()
{
compDomain
()
{
const
protocolStr
=
document
.
location
.
protocol
;
const
protocolStr
=
document
.
location
.
protocol
;
if
(
document
.
domain
.
indexOf
(
"
staging
"
)
<
0
&&
document
.
domain
!=
'
localhost
'
)
{
return
`
${
protocolStr
}
//api.iplayabc.com/`
;
return
`
${
protocolStr
}
//openapi.iteachabc.com/`
;
}
return
`
${
protocolStr
}
//staging-openapi.iteachabc.com/`
;
},
},
},
},
methods
:
{
methods
:
{
...
@@ -42,7 +39,7 @@ new Vue({
...
@@ -42,7 +39,7 @@ new Vue({
$
.
ajax
({
$
.
ajax
({
type
:
"
GET
"
,
type
:
"
GET
"
,
contentType
:
"
application/x-www-form-urlencoded; charset=utf-8
"
,
contentType
:
"
application/x-www-form-urlencoded; charset=utf-8
"
,
url
:
`
${
this
.
compDomain
}
api/dige/non
/v1/gradetree/list`
,
url
:
`
${
this
.
compDomain
}
ciba/api
/v1/gradetree/list`
,
success
:
(
xhr
)
=>
{
success
:
(
xhr
)
=>
{
this
.
rows
=
xhr
.
rows
.
filter
(
item
=>
this
.
checkedArr
.
includes
(
item
.
id
));
this
.
rows
=
xhr
.
rows
.
filter
(
item
=>
this
.
checkedArr
.
includes
(
item
.
id
));
this
.
currentRows
=
this
.
rows
;
this
.
currentRows
=
this
.
rows
;
...
@@ -59,7 +56,7 @@ new Vue({
...
@@ -59,7 +56,7 @@ new Vue({
$
.
ajax
({
$
.
ajax
({
type
:
"
GET
"
,
type
:
"
GET
"
,
contentType
:
"
application/x-www-form-urlencoded; charset=utf-8
"
,
contentType
:
"
application/x-www-form-urlencoded; charset=utf-8
"
,
url
:
`
${
this
.
compDomain
}
api/dige/non
/v1/gradetree/list?pid=
${
item
.
id
}
`
,
url
:
`
${
this
.
compDomain
}
ciba/api
/v1/gradetree/list?pid=
${
item
.
id
}
`
,
dataType
:
'
json
'
,
// 明确指定期望的数据类型
dataType
:
'
json
'
,
// 明确指定期望的数据类型
success
:
(
response
)
=>
{
success
:
(
response
)
=>
{
// 检查响应是否包含预期的数据
// 检查响应是否包含预期的数据
...
@@ -171,7 +168,7 @@ new Vue({
...
@@ -171,7 +168,7 @@ new Vue({
},
},
searchWords
()
{
searchWords
()
{
$
.
ajax
({
$
.
ajax
({
url
:
`
https://api.iplayabc.com/
ciba/api/v1/word/reviews`
,
url
:
`
${
this
.
compDomain
}
ciba/api/v1/word/reviews`
,
method
:
'
GET
'
,
method
:
'
GET
'
,
data
:
{
data
:
{
daylimit
:
20
,
daylimit
:
20
,
...
...
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