Commit 8d4f9e94 authored by liujiangnan's avatar liujiangnan

debug

parent 8251d517
......@@ -31,10 +31,7 @@ new Vue({
},
compDomain() {
const protocolStr = document.location.protocol;
if (document.domain.indexOf("staging") < 0 && document.domain != 'localhost') {
return `${protocolStr}//openapi.iteachabc.com/`;
}
return `${protocolStr}//staging-openapi.iteachabc.com/`;
return `${protocolStr}//api.iplayabc.com/`;
},
},
methods: {
......@@ -42,7 +39,7 @@ new Vue({
$.ajax({
type: "GET",
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) => {
this.rows = xhr.rows.filter(item => this.checkedArr.includes(item.id));
this.currentRows = this.rows;
......@@ -59,7 +56,7 @@ new Vue({
$.ajax({
type: "GET",
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', // 明确指定期望的数据类型
success: (response) => {
// 检查响应是否包含预期的数据
......@@ -171,7 +168,7 @@ new Vue({
},
searchWords() {
$.ajax({
url: `https://api.iplayabc.com/ciba/api/v1/word/reviews`,
url: `${this.compDomain}ciba/api/v1/word/reviews`,
method: 'GET',
data: {
daylimit: 20,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment