Commit 8d4f9e94 authored by liujiangnan's avatar liujiangnan

debug

parent 8251d517
...@@ -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,
......
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