Skip to content

Commit 54aaa8b

Browse files
fix(geode_store): .base_url in cloud_store
1 parent ef79af9 commit 54aaa8b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

stores/cloud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const use_cloud_store = defineStore('cloud', {
2323
if (this.ID === '' || this.ID === null || typeof this.ID === 'undefined') {
2424
return this.create_backend()
2525
} else {
26-
const { data, error } = await useFetch(`${this.geode_url}/ping`, { method: 'POST' })
26+
const { data, error } = await useFetch(`${geode_store.base_url}/ping`, { method: 'POST' })
2727
console.log("error", error)
2828
if (data.value !== null) {
2929
geode_store.is_running = true

stores/geode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const use_geode_store = defineStore('geode', {
99
const public_runtime_config = useRuntimeConfig().public
1010
var geode_url = `${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}`
1111
if (process.env.NODE_ENV == 'production') {
12-
geode_url = geode_url + `/${cloud_store.ID}/geode`
12+
geode_url += `/${cloud_store.ID}/geode`
1313
}
1414
return geode_url
1515
},

stores/websocket.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const use_websocket_store = defineStore('websocket', {
2424
const public_runtime_config = useRuntimeConfig().public
2525
var viewer_url = `${public_runtime_config.VIEWER_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.VIEWER_PORT}`
2626
if (process.env.NODE_ENV == 'production') {
27-
viewer_url = viewer_url + `/${cloud_store.ID}/viewer`
27+
viewer_url += `/${cloud_store.ID}/viewer`
2828
}
29-
viewer_url = viewer_url + '/ws'
29+
viewer_url += '/ws'
3030
return viewer_url
3131
},
3232
is_busy: (state) => {
@@ -90,7 +90,6 @@ export const use_websocket_store = defineStore('websocket', {
9090
});
9191
},
9292
ws_initialize_server () {
93-
9493
if (!_.isEmpty(this.client)) {
9594
this.client
9695
.getRemote()

0 commit comments

Comments
 (0)