当前位置:网站首页>vant3+ts+pinia tab选项卡列表页面点击进详情,详情页返回tab高亮在原位置,刷新高亮默认在第一项
vant3+ts+pinia tab选项卡列表页面点击进详情,详情页返回tab高亮在原位置,刷新高亮默认在第一项
2022-06-12 17:41:00 【热忱学习】

主要实现逻辑就是在vuex里面存一个变量,用来判断是详情还是列表页面


在点击详情的时候,把tab存进去

在onMounted加载的时候从vuex 里面取出来, 在setup 里面先存0,下面的判断就会走else
点击头部左按钮返回的时候给置为true

边栏推荐
- Kali2022安装armitage
- 消息队列存储消息数据的 MySQL 表格
- 淘宝Native研发模式的演进与思考 | DX研发模式
- Volcano engine held a video cloud technology force summit and released a new experience oriented video cloud product matrix
- The R language uses the tabpct function of the epidisplay package to generate a two-dimensional contingency table, and uses the mosaic diagram to visualize the contingency table (two-dimensional conti
- C# 业务流水号规则生成组件
- Kill program errors in the cradle with spotbugs
- Codeforces Round #398 (Div. 2) D. Cartons of milk
- 分辨率与行场同步信号的关系 场消隐
- Recognize function originality
猜你喜欢

MySQL学习笔记

WinForm, crystal report making

Qiushengchang: Practice of oppo commercial data system construction

A variety of Qt development methods, which do you choose?
Goframe gredis configuration management | comparison of configuration files and configuration methods

SSM集成FreeMarker以及常用语法

How to change Golan back to the English version when it becomes the Chinese version

Interesting LD_ PRELOAD

Arm64 Stack backtrack

Arm64栈回溯
随机推荐
MySQL学习笔记
Sizepolicy policy in layout management
32-bit MCU mm32f0040 with smart micro high performance M0 kernel
How to view, modify, and delete SSH
Use of split method of string
《用户体验要素:以用户为中心的产品设计》笔记
Tensorflow prompts typeerror: unsupported operand type (s) for *: 'float' and 'nonetype‘
R language uses the sum function of epidisplay package to calculate the descriptive statistical summary information of the specified variables in dataframe under different grouped variables and visual
The R language uses the PDF function to save the visual image results to the PDF file, uses the PDF function to open the image device, uses the dev.off function to close the image device, and customiz
有关cookie的用法介绍
Gerrit+2 triggers Jenkins task
error接口原创
字节飞书人力资源套件三面
Enterprise internal online training system source code
Authorization in Golang ProjectUseing Casbin
Getting started with grpc swift
数组按指定顺序排序
TensorFlow2训练数据集的两种方式
Is Huishang futures company reliable in opening accounts and safe in trading?
Vulnhub[DC3]