|
@@ -45,9 +45,10 @@ const getTabBarWrapStyle = computed(() => ({
|
|
|
position: props.fixed ? 'fixed' : 'relative'
|
|
position: props.fixed ? 'fixed' : 'relative'
|
|
|
}));
|
|
}));
|
|
|
|
|
|
|
|
|
|
+// 底部 tabBar 跳转(需在 pages.json 中配置 tabBar.list)
|
|
|
function go(url) {
|
|
function go(url) {
|
|
|
if (url === unref(getPath)) return;
|
|
if (url === unref(getPath)) return;
|
|
|
- uni.reLaunch({ url });
|
|
|
|
|
|
|
+ uni.switchTab({ url });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const getPath = computed(() => {
|
|
const getPath = computed(() => {
|