Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
U
uni-app-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tangfh
uni-app-base
Commits
a164207a
Commit
a164207a
authored
Jul 14, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
9e2f1536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
base-tab.vue
pages/template/base-tab.vue
+3
-5
No files found.
pages/template/base-tab.vue
View file @
a164207a
...
@@ -195,13 +195,11 @@
...
@@ -195,13 +195,11 @@
onTabChange
(
e
)
{
onTabChange
(
e
)
{
let
index
=
e
.
target
.
current
||
e
.
detail
.
current
;
let
index
=
e
.
target
.
current
||
e
.
detail
.
current
;
this
.
switchTab
(
index
);
this
.
switchTab
(
index
);
if
(
this
.
tabBars
[
index
].
content
.
list
.
length
>
0
)
{
let
tab
=
this
.
tabBars
[
index
];
if
(
tab
.
content
.
list
.
length
>
0
||
!
tab
.
content
.
refreshFlag
)
{
return
;
return
;
}
}
var
tab
=
this
.
tabBars
[
this
.
tabIndex
];
this
.
refresh
();
setTimeout
(()
=>
{
tab
.
content
.
refreshing
=
true
;
},
35
)
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
if
(
this
.
tabIndex
===
index
)
{
if
(
this
.
tabIndex
===
index
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment