|
@@ -254,7 +254,7 @@ export default class LogReport {
|
|
// 日志记录上报 字符串日志上报
|
|
// 日志记录上报 字符串日志上报
|
|
report() {
|
|
report() {
|
|
this.logs.forEach(() => {
|
|
this.logs.forEach(() => {
|
|
- this.$Request.post(this.URL_API + this.URL_ADDRESS, { ...this.logs.shift() })
|
|
|
|
|
|
+ this.$Request.post(this.URL_API[location.protocol] + this.URL_ADDRESS, { ...this.logs.shift() })
|
|
.then(res => {
|
|
.then(res => {
|
|
console.log('日志上报成功', res);
|
|
console.log('日志上报成功', res);
|
|
});
|
|
});
|