Commit a9485f95 authored by 胡占生's avatar 胡占生 🇨🇳

fix: 底部状态栏功能修复

parent ce5d2251
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
data() { data() {
return { return {
active: "0", active: localStorage.getItem('active')?localStorage.getItem('active'):1,
tabBarList: [ tabBarList: [
{ {
key: "1", key: "1",
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
}; };
}, },
mounted() { mounted() {
this.active = this.index // this.active = this.index
}, },
methods: { methods: {
onChange(index) { onChange(index) {
this.active = index; localStorage.setItem('active',index);
if(this.active==index){ if(this.active==index){
this.tabBarList.forEach((item)=>{ this.tabBarList.forEach((item)=>{
if(item.name==this.active){ if(item.name==this.active){
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
v-model="active" v-model="active"
color="#2980f7" color="#2980f7"
animated animated
:sticky="true"
offset-top="2.93rem" offset-top="2.93rem"
> >
<van-tab title="任务详情"> <van-tab title="任务详情">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment