diff --git a/package.json b/package.json index 39cfcff9..f6943601 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@vueuse/math": "^9.12.0", "apexcharts": "^3.37.1", "autoprefixer": "^10.4.14", - "axios": "^1.3.2", "buffer": "^6.0.3", "build": "^0.1.4", "cosmjs-types": "^0.9.0", @@ -71,15 +70,15 @@ "@vue/tsconfig": "^0.1.3", "npm-run-all": "^4.1.5", "prettier": "^2.7.1", - "sass": "^1.58.0", - "typescript": "~4.9.5", + "sass": "^1.70.0", + "typescript": "^5.3.3", "unplugin-auto-import": "^0.13.0", "unplugin-vue-components": "^0.23.0", "unplugin-vue-define-options": "1.1.4", - "vite": "^4.4.9", - "vite-plugin-pages": "^0.28.0", + "vite": "^5.0.12", + "vite-plugin-pages": "^0.32.0", "vue-json-viewer": "3", - "vue-tsc": "^1.0.12" + "vue-tsc": "^1.8.27" }, "resolutions": { "cosmjs-types": "^0.9.0" diff --git a/src/libs/http.ts b/src/libs/http.ts index 64aad5ae..3fd95dd4 100644 --- a/src/libs/http.ts +++ b/src/libs/http.ts @@ -61,6 +61,6 @@ export async function post(url: string, data: any) { }, body: JSON.stringify(data), // body data type must match "Content-Type" header }); - // const response = axios.post((config ? config.rpc : this.config.rpc) + url, data) + return response.json(); // parses JSON response into native JavaScript objects } diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index 854c01bb..8b5e5326 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -1,8 +1,8 @@