fix: 更新 @riwa/api-types 依赖的版本和路径,添加资产记录路由的类型参数
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
"@elysiajs/eden": "^1.4.5",
|
"@elysiajs/eden": "^1.4.5",
|
||||||
"@ionic/vue": "^8.7.11",
|
"@ionic/vue": "^8.7.11",
|
||||||
"@ionic/vue-router": "^8.7.11",
|
"@ionic/vue-router": "^8.7.11",
|
||||||
"@riwa/api-types": "http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz",
|
"@riwa/api-types": "http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz",
|
||||||
"@tailwindcss/vite": "^4.1.18",
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
"@vee-validate/yup": "^4.15.1",
|
"@vee-validate/yup": "^4.15.1",
|
||||||
"@vueuse/core": "^14.1.0",
|
"@vueuse/core": "^14.1.0",
|
||||||
|
|||||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -57,8 +57,8 @@ importers:
|
|||||||
specifier: ^8.7.11
|
specifier: ^8.7.11
|
||||||
version: 8.7.11(@stencil/core@4.39.0)(vue-router@4.6.3(vue@3.5.25(typescript@5.9.3)))(vue@3.5.25(typescript@5.9.3))
|
version: 8.7.11(@stencil/core@4.39.0)(vue-router@4.6.3(vue@3.5.25(typescript@5.9.3)))(vue@3.5.25(typescript@5.9.3))
|
||||||
'@riwa/api-types':
|
'@riwa/api-types':
|
||||||
specifier: http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz
|
specifier: http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz
|
||||||
version: '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))'
|
version: '@riwa/eden@http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))'
|
||||||
'@tailwindcss/vite':
|
'@tailwindcss/vite':
|
||||||
specifier: ^4.1.18
|
specifier: ^4.1.18
|
||||||
version: 4.1.18(vite@7.2.7(@types/node@24.10.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)(yaml@2.8.2))
|
version: 4.1.18(vite@7.2.7(@types/node@24.10.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)(yaml@2.8.2))
|
||||||
@@ -2766,9 +2766,9 @@ packages:
|
|||||||
'@remirror/core-constants@3.0.0':
|
'@remirror/core-constants@3.0.0':
|
||||||
resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
|
resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
|
||||||
|
|
||||||
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz':
|
'@riwa/eden@http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz':
|
||||||
resolution: {tarball: http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz}
|
resolution: {tarball: http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz}
|
||||||
version: 0.0.91
|
version: 0.0.92
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@elysiajs/eden': ^1.4.5
|
'@elysiajs/eden': ^1.4.5
|
||||||
|
|
||||||
@@ -12077,7 +12077,7 @@ snapshots:
|
|||||||
|
|
||||||
'@remirror/core-constants@3.0.0': {}
|
'@remirror/core-constants@3.0.0': {}
|
||||||
|
|
||||||
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))':
|
'@riwa/eden@http://192.168.1.7:9527/api/riwa-eden-0.0.92.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@elysiajs/eden': 1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))
|
'@elysiajs/eden': 1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/asset_record/:code",
|
path: "/asset_record/:code/:type?",
|
||||||
props: true,
|
props: true,
|
||||||
component: () => import("@/views/wallet/asset-record.vue"),
|
component: () => import("@/views/wallet/asset-record.vue"),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
|
|||||||
@@ -4,11 +4,12 @@ import type { AssetRecordBody, AssetRecordData } from "@/api/types";
|
|||||||
import IconParkOutlineTransaction from "~icons/icon-park-outline/transaction";
|
import IconParkOutlineTransaction from "~icons/icon-park-outline/transaction";
|
||||||
import { client, safeClient } from "@/api";
|
import { client, safeClient } from "@/api";
|
||||||
|
|
||||||
const props = defineProps<{ code: string }>();
|
const props = defineProps<{ code: string; type?: "funding" | "trading" }>();
|
||||||
const [query, resetQuery] = useResetRef<AssetRecordBody>({
|
const [query, resetQuery] = useResetRef<AssetRecordBody>({
|
||||||
limit: 20,
|
limit: 20,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
assetCode: props.code,
|
assetCode: props.code,
|
||||||
|
accountType: props.type || undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = ref<AssetRecordData[]>([]);
|
const data = ref<AssetRecordData[]>([]);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-list lines="none" class="space-y-5 mt-2!">
|
<ion-list lines="none" class="space-y-5 mt-2!">
|
||||||
<ion-item v-for="asset, i in fundingBalances" :key="i">
|
<ion-item v-for="asset, i in fundingBalances" :key="i" @click="$router.push(`/asset_record/${asset.assetCode}/funding`)">
|
||||||
<div class="flex items-center space-x-3 flex-1">
|
<div class="flex items-center space-x-3 flex-1">
|
||||||
<Icon :icon="asset.asset.iconUrl || ''" class="w-8 h-8" />
|
<Icon :icon="asset.asset.iconUrl || ''" class="w-8 h-8" />
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-list lines="none" class="space-y-5 mt-2!">
|
<ion-list lines="none" class="space-y-5 mt-2!">
|
||||||
<ion-item v-for="asset, i in tradingBalances" :key="i">
|
<ion-item v-for="asset, i in tradingBalances" :key="i" @click="$router.push(`/asset_record/${asset.assetCode}/trading`)">
|
||||||
<div class="flex items-center space-x-3 flex-1">
|
<div class="flex items-center space-x-3 flex-1">
|
||||||
<Icon :icon="asset.asset.iconUrl || ''" class="w-8 h-8" />
|
<Icon :icon="asset.asset.iconUrl || ''" class="w-8 h-8" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user