Skip to content

Commit 6cf384d

Browse files
Merge pull request #92 from Geode-solutions/fix/vueuse_imports
Fix/vueuse imports
2 parents 0a046dc + dd43552 commit 6cf384d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"@pinia/nuxt": "^0.5.1",
4646
"@types/node": "^20.12.4",
4747
"@vueuse/components": "^10.9.0",
48-
"@vueuse/core": "^10.9.0",
4948
"@vueuse/nuxt": "^10.9.0",
5049
"ajv": "^8.12.0",
5150
"pinia": "^2.1.7",

stores/cloud.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useFetch, useStorage } from "@vueuse/core"
1+
import { useStorage } from "@vueuse/core"
22

33
export const use_cloud_store = defineStore("cloud", {
44
state: () => ({
@@ -36,7 +36,7 @@ export const use_cloud_store = defineStore("cloud", {
3636
) {
3737
return this.create_backend()
3838
} else {
39-
const { data, error } = await useFetch(`${geode_store.base_url}/ping`, {
39+
const { data } = await useFetch(`${geode_store.base_url}/ping`, {
4040
method: "POST",
4141
})
4242
if (data.value !== null) {
@@ -56,11 +56,10 @@ export const use_cloud_store = defineStore("cloud", {
5656
public_runtime_config.PROJECT,
5757
"/createbackend",
5858
)
59-
const { data, error } = await useFetch(url, {
59+
const { data } = await useFetch(url, {
6060
method: "POST",
6161
})
6262

63-
console.log("data", data)
6463
if (data.value !== null) {
6564
this.ID = data.value.ID
6665
localStorage.setItem("ID", data.value.ID)

0 commit comments

Comments
 (0)