|
@@ -16,13 +16,18 @@ import PointExchangeRecord from './dynamic/pointExchangeRecord.vue'
|
|
import MyPrize from './dynamic/myPrize.vue'
|
|
import MyPrize from './dynamic/myPrize.vue'
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
+const mode = import.meta.env.VITE_NODE_ENV
|
|
const tab = ref(0)
|
|
const tab = ref(0)
|
|
-const items = shallowRef([
|
|
|
|
|
|
+const items = shallowRef(mode === 'production' ? [
|
|
|
|
+ { label: '余额充值、购买会员订单', value: 0, path: RechargeVipOrder }
|
|
|
|
+] : [
|
|
{ label: '余额充值、购买会员订单', value: 0, path: RechargeVipOrder },
|
|
{ label: '余额充值、购买会员订单', value: 0, path: RechargeVipOrder },
|
|
{ label: '商城交易订单', value: 1, path: MallOrder },
|
|
{ label: '商城交易订单', value: 1, path: MallOrder },
|
|
{ label: '积分兑换记录', value: 2, path: PointExchangeRecord },
|
|
{ label: '积分兑换记录', value: 2, path: PointExchangeRecord },
|
|
{ label: '我的奖品', value: 3, path: MyPrize }
|
|
{ label: '我的奖品', value: 3, path: MyPrize }
|
|
])
|
|
])
|
|
|
|
+
|
|
|
|
+
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const { key } = route.query
|
|
const { key } = route.query
|
|
if (key) tab.value = Number(key)
|
|
if (key) tab.value = Number(key)
|