getBasePath

This commit is contained in:
Erlang Parasu 2020-08-01 18:12:26 +08:00 committed by GitHub
parent c5c11612e3
commit 334846dba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@
wssPort: this.port === null ? 6001 : this.port,
wsPath: this.app.path === null ? '' : this.app.path,
disableStats: true,
authEndpoint: '/{{ request()->path() }}/auth',
authEndpoint: '/{{ request()->getBasePath() }}/auth',
auth: {
headers: {
'X-CSRF-Token': "{{ csrf_token() }}",
@ -162,7 +162,7 @@
},
loadChart() {
$.getJSON('/{{ request()->path() }}/api/'+this.app.id+'/statistics', (data) => {
$.getJSON('/{{ request()->getBasePath() }}/api/'+this.app.id+'/statistics', (data) => {
let chartData = [
{
@ -246,7 +246,7 @@
},
sendEvent() {
$.post('/{{ request()->path() }}/event', {
$.post('/{{ request()->getBasePath() }}/event', {
_token: '{{ csrf_token() }}',
key: this.app.key,
secret: this.app.secret,