From 349c48e168b9f2580334422228acde7d1b21bede Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Fri, 05 Jun 2026 11:19:15 +0800
Subject: [PATCH] 1
---
src/views/morePage/index.vue | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/views/morePage/index.vue b/src/views/morePage/index.vue
index 6d51cf3..2d36792 100644
--- a/src/views/morePage/index.vue
+++ b/src/views/morePage/index.vue
@@ -83,6 +83,7 @@
import { showToast } from "vant";
import { useI18n } from "vue-i18n";
import { useUserStore } from '@/store/user';
+import { getStorage, setStorage } from '@/utils/index.js'
const useStore = useUserStore();
const { t } = useI18n()
@@ -93,6 +94,7 @@
recommend: [
{ name: t('公告中心'), url: new URL('@/assets/theme/dark/image/nav/announcement.png', import.meta.url), path: '/cryptos/announce', isLogin: false },
{ name: t('充值'), url: new URL('@/assets/theme/dark/image/nav/recharge.png', import.meta.url), path: '/cryptos/recharge/rechargeList', isLogin: true },
+ { name: t('交割合约'), url: new URL('@/assets/imgs/home/home_8.png', import.meta.url), path: '/trade/index?selectIndex=2', isLogin: false },
{ name: t('提现'), url: new URL('@/assets/theme/dark/image/nav/withdraw.png', import.meta.url), path: '/cryptos/withdraw/withdrawPage', isLogin: true },
{ name: t('账变记录'), url: new URL('@/assets/theme/dark/image/nav/record.png', import.meta.url), path: '/cryptos/accountChange?type=cryptos', isLogin: true },
// { name: t('质押借币'), url: new URL('@/assets/theme/dark/image/nav/PledgeLoan.png', import.meta.url), path: '/cryptos/pledgeLoan', isLogin: false },
@@ -132,6 +134,11 @@
}
}
const openUrl = (item) => {
+ if (item.path && item.path.includes('/trade/index')) {
+ if (!getStorage('symbol')) {
+ setStorage('symbol', 'btcusdt')
+ }
+ }
if (item.isLogin) {
if (!useStore.userInfo.token) {
router.push('/login')
--
Gitblit v1.9.3