Browse Source

修复列表页面缓存后,返回列表位置不正确的问题

pull/19/head
zyronon 4 years ago
parent
commit
6f11427b42
  1. 2
      src/assets/less/variables.less
  2. 1
      src/components/BaseHeader.vue
  3. 5
      src/components/Scroll.vue
  4. 11
      src/pages/me/Uploader.vue
  5. 6
      src/pages/message/Fans.vue
  6. 57
      src/pages/message/notice/DouyinHelper.vue
  7. 46
      src/pages/message/notice/LiveNotice.vue
  8. 95
      src/pages/message/notice/MoneyNotice.vue
  9. 2
      src/pages/message/notice/NoticeSetting.vue
  10. 57
      src/pages/message/notice/SystemNotice.vue
  11. 88
      src/pages/message/notice/TaskNotice.vue
  12. 2
      src/pages/people/components/People.vue
  13. 4
      src/router/routes.js
  14. 2
      src/store/index.js

2
src/assets/less/variables.less

@ -1,5 +1,5 @@
@footer-height: 5rem; @footer-height: 5rem;
@header-height: 6.1rem; @header-height: 6rem;
@indicator-height: 5rem; @indicator-height: 5rem;
@padding-page: 1.5rem; @padding-page: 1.5rem;

1
src/components/BaseHeader.vue

@ -84,6 +84,7 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: @header-height; height: @header-height;
box-sizing: border-box;
border-bottom: 1px solid #cccccc11; border-bottom: 1px solid #cccccc11;
position: relative; position: relative;

5
src/components/Scroll.vue

@ -96,6 +96,11 @@ export default {
} }
} }
}, },
scrollBottom() {
nextTick(()=>{
this.wrapper.scrollTo({top: this.wrapper.scrollHeight - this.wrapper.clientHeight})
})
}
} }
} }
</script> </script>

11
src/pages/me/Uploader.vue

@ -1,7 +1,7 @@
<template> <template>
<div id="Uploader"> <div id="Uploader">
<div ref="float" class="float" :class="floatFixed?'fixed':''"> <div ref="float" class="float" :class="floatFixed?'fixed':''">
<div class="left" @click="$emit('back')"> <div class="left" @click="back">
<img src="../../assets/img/icon/next.svg" alt=""> <img src="../../assets/img/icon/next.svg" alt="">
</div> </div>
<transition name="fade"> <transition name="fade">
@ -204,7 +204,6 @@
<img class="download" src="../../assets/img/icon/components/video/download.png" alt="" @click.stop="$no"> <img class="download" src="../../assets/img/icon/components/video/download.png" alt="" @click.stop="$no">
</div> </div>
</transition> </transition>
</div> </div>
</template> </template>
<script lang="jsx"> <script lang="jsx">
@ -375,6 +374,7 @@ export default {
} }
}, },
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
this.refs.header = this.$refs.header this.refs.header = this.$refs.header
this.refs.headerHeight = this.$refs.header.offsetHeight this.refs.headerHeight = this.$refs.header.offsetHeight
@ -389,6 +389,13 @@ export default {
bus.on('baseSlide-end', () => this.canScroll = true) bus.on('baseSlide-end', () => this.canScroll = true)
}, },
methods: { methods: {
back() {
if (this.$route.path === '/me/uploader') {
this.$back()
} else {
this.$emit('back')
}
},
copy() { copy() {
const input = document.createElement('input'); const input = document.createElement('input');
input.setAttribute('readonly', 'readonly'); input.setAttribute('readonly', 'readonly');

6
src/pages/message/Fans.vue

@ -6,8 +6,8 @@
</template> </template>
</BaseHeader> </BaseHeader>
<div class="content"> <div class="content">
<Loading v-if="loading"/> <Loading v-if="loading"/>
<Scroll @pulldown="loadData" v-else> <Scroll ref="mainScroll" @pulldown="loadData" v-else>
<Peoples v-model:list="fans" <Peoples v-model:list="fans"
:loading="loadingMore" :loading="loadingMore"
mode="fans"/> mode="fans"/>
@ -29,8 +29,10 @@ import People from "../people/components/People";
import Scroll from "../../components/Scroll"; import Scroll from "../../components/Scroll";
import Loading from "../../components/Loading"; import Loading from "../../components/Loading";
import Peoples from "../people/components/Peoples"; import Peoples from "../people/components/Peoples";
import BasePage from "../BasePage";
export default { export default {
extends: BasePage,
name: "Fans", name: "Fans",
components: { components: {
Scroll, Scroll,

57
src/pages/message/notice/DouyinHelper.vue

@ -1,39 +1,44 @@
<template> <template>
<div id="DouyinHelper"> <div id="DouyinHelper">
<BaseHeader> <BaseHeader :isFixed="false">
<template v-slot:center> <template v-slot:center>
<span class="f16">抖音小助手</span> <span class="f16">抖音小助手</span>
</template> </template>
</BaseHeader> </BaseHeader>
<Loading v-if="loading"/> <Loading v-if="loading"/>
<div class="content" ref="content" v-else> <Scroll v-else ref="mainScroll">
<NoMore/> <div class="content">
<div class="list"> <NoMore/>
<!--TODO 超过3行显示全文--> <div class="list">
<div class="item" v-for="item in list" @click="goDetail(item)"> <!--TODO 超过3行显示全文-->
<div class="title">{{ item.title }} <div class="item" v-for="item in list" @click="goDetail(item)">
<div class="ml1r not-read" v-if="!item.read"></div> <div class="title">{{ item.title }}
</div> <div class="ml1r not-read" v-if="!item.read"></div>
<div class="time">{{ item.time }}</div> </div>
<div class="content-text">{{ item.content }}</div> <div class="time">{{ item.time }}</div>
<div class="look-detail"> <div class="content-text">{{ item.content }}</div>
<span>查看详情</span> <div class="look-detail">
<back direction="right" scale=".6"/> <span>查看详情</span>
<back direction="right" scale=".6"/>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </Scroll>
</div> </div>
</template> </template>
<script> <script>
import {nextTick} from "vue"; import {nextTick} from "vue";
import Scroll from "../../../components/Scroll";
import BasePage from "../../BasePage";
export default { export default {
extends: BasePage,
name: "DouyinHelper", name: "DouyinHelper",
components: {}, components: {Scroll},
data() { data() {
return { return {
loading:false, loading: false,
list: [ list: [
{ {
read: false, read: false,
@ -82,15 +87,12 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
async getData(){ async getData() {
this.loading = true this.loading = true
await this.$sleep(700) await this.$sleep(700)
this.loading = false this.loading = false
await nextTick()
nextTick(() => { this.$refs.mainScroll.scrollBottom()
let content = this.$refs['content']
content.scrollTo({top: content.scrollHeight - content.clientHeight})
})
}, },
goDetail(item) { goDetail(item) {
item.read = true item.read = true
@ -113,11 +115,13 @@ export default {
color: white; color: white;
font-size: 1.4rem; font-size: 1.4rem;
.scroll {
height: calc(100vh - @header-height);
}
.content { .content {
padding: @padding-page; padding: @padding-page;
padding-top: 6rem; padding-top: 0;
height: 100vh;
overflow: auto;
box-sizing: border-box; box-sizing: border-box;
.list { .list {
@ -158,5 +162,6 @@ export default {
} }
} }
} }
} }
</style> </style>

46
src/pages/message/notice/LiveNotice.vue

@ -1,6 +1,6 @@
<template> <template>
<div id="TaskNotice"> <div id="TaskNotice">
<BaseHeader> <BaseHeader :isFixed="false">
<template v-slot:center> <template v-slot:center>
<span class="f16">直播通知</span> <span class="f16">直播通知</span>
</template> </template>
@ -10,15 +10,18 @@
</BaseHeader> </BaseHeader>
<Loading v-if="loading"/> <Loading v-if="loading"/>
<div class="content" v-else> <div class="content" v-else>
<div class="list" ref="content"> <Scroll ref="mainScroll">
<NoMore/> <div class="list">
<div class="item" v-for="item in list" @click="goDetail(item)"> <NoMore/>
<div class="title">{{ item.title }} <div class="item" v-for="item in list" @click="goDetail(item)">
<div class="title">{{ item.title }}
</div>
<div class="time">{{ item.time }}</div>
<div class="content-text">{{ item.content }}</div>
</div> </div>
<div class="time">{{ item.time }}</div>
<div class="content-text">{{ item.content }}</div>
</div> </div>
</div> </Scroll>
</div> </div>
</div> </div>
</template> </template>
@ -26,15 +29,19 @@
import {nextTick} from "vue"; import {nextTick} from "vue";
import Mask from "../../../components/Mask"; import Mask from "../../../components/Mask";
import FromBottomDialog from "../../../components/dialog/FromBottomDialog"; import FromBottomDialog from "../../../components/dialog/FromBottomDialog";
import Scroll from "../../../components/Scroll";
import BasePage from "../../BasePage";
export default { export default {
name: "SystemNotice", extends: BasePage,
name: "LiveNotice",
components: { components: {
Scroll,
FromBottomDialog FromBottomDialog
}, },
data() { data() {
return { return {
loading:false, loading: false,
list: [ list: [
{ {
title: '直播举报反馈', title: '直播举报反馈',
@ -59,11 +66,8 @@ export default {
this.loading = true this.loading = true
await this.$sleep(700) await this.$sleep(700)
this.loading = false this.loading = false
await nextTick()
nextTick(() => { this.$refs.mainScroll.scrollBottom()
let content = this.$refs['content']
content.scrollTo({top: content.scrollHeight - content.clientHeight})
})
}, },
goDetail(item) { goDetail(item) {
item.read = true item.read = true
@ -84,18 +88,20 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
top: 0; top: 0;
overflow: auto;
color: white; color: white;
font-size: 1.4rem; font-size: 1.4rem;
.scroll {
height: calc(100vh - @header-height);
}
.content { .content {
padding-top: 6rem; height: calc(100vh - @header-height);
.list { .list {
height: calc(100vh - 6rem); padding: @padding-page;
overflow: auto; padding-top: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 @padding-page;
.item { .item {
padding: @padding-page; padding: @padding-page;

95
src/pages/message/notice/MoneyNotice.vue

@ -1,6 +1,6 @@
<template> <template>
<div id="MoneyNotice"> <div id="MoneyNotice">
<BaseHeader> <BaseHeader :isFixed="false">
<template v-slot:center> <template v-slot:center>
<span class="f16">钱包通知</span> <span class="f16">钱包通知</span>
</template> </template>
@ -10,42 +10,44 @@
</BaseHeader> </BaseHeader>
<Loading v-if="loading"/> <Loading v-if="loading"/>
<div class="content" v-else> <div class="content" v-else>
<div class="list" ref="content"> <Scroll ref="mainScroll">
<NoMore/> <div class="list">
<!--TODO 超过3行显示全文--> <NoMore/>
<div class="item" v-for="item in list" @click="$no"> <!--TODO 超过3行显示全文-->
<div class="header"> <div class="item" v-for="item in list" @click="$no">
<div class="left"> <div class="header">
<img src="../../../assets/img/icon/msg-icon9.webp" alt=""> <div class="left">
<img src="../../../assets/img/icon/msg-icon9.webp" alt="">
</div>
<div class="right">
<template v-if="item.type === 1">
<span>零钱任务</span>
</template>
<template v-if="item.type === 2">
<span>钱包任务</span>
</template>
<img @click.stop="isShowSetting = true" src="../../../assets/img/icon/menu-gray.png" alt="">
</div>
</div> </div>
<div class="right"> <div class="title">{{ item.title }}</div>
<template v-if="item.type === 1"> <div class="time">{{ item.time }}</div>
<span>零钱任务</span> <template v-if="item.type === 1">
</template> <div class="content-text">退款金额{{ item.money }}</div>
<template v-if="item.type === 2"> <div class="content-text">退回方式{{ item.toAccountType }}</div>
<span>钱包任务</span> <div class="content-text">退款原因{{ item.desc }}</div>
</template> <div class="content-text">预计到账时间{{ item.toAccountTime }}</div>
<img @click.stop="isShowSetting = true" src="../../../assets/img/icon/menu-gray.png" alt=""> </template>
<template v-if="item.type === 2">
<div class="content-text">{{ item.desc }}</div>
</template>
<div class="look-detail">
<span>查看详情</span>
<back direction="right" scale=".6"/>
</div> </div>
</div> </div>
<div class="title">{{ item.title }}</div>
<div class="time">{{ item.time }}</div>
<template v-if="item.type === 1">
<div class="content-text">退款金额{{ item.money }}</div>
<div class="content-text">退回方式{{ item.toAccountType }}</div>
<div class="content-text">退款原因{{ item.desc }}</div>
<div class="content-text">预计到账时间{{ item.toAccountTime }}</div>
</template>
<template v-if="item.type === 2">
<div class="content-text">{{ item.desc }}</div>
</template>
<div class="look-detail">
<span>查看详情</span>
<back direction="right" scale=".6"/>
</div>
</div> </div>
</div> </Scroll>
</div> </div>
<from-bottom-dialog <from-bottom-dialog
@ -71,11 +73,15 @@
import {nextTick} from "vue"; import {nextTick} from "vue";
import Mask from "../../../components/Mask"; import Mask from "../../../components/Mask";
import FromBottomDialog from "../../../components/dialog/FromBottomDialog"; import FromBottomDialog from "../../../components/dialog/FromBottomDialog";
import Scroll from "../../../components/Scroll";
import BasePage from "../../BasePage";
export default { export default {
name: "SystemNotice", extends: BasePage,
name: "MoneyNotice",
components: { components: {
FromBottomDialog FromBottomDialog,
Scroll
}, },
data() { data() {
return { return {
@ -112,11 +118,8 @@ export default {
this.loading = true this.loading = true
await this.$sleep(700) await this.$sleep(700)
this.loading = false this.loading = false
await nextTick()
nextTick(() => { this.$refs.mainScroll.scrollBottom()
let content = this.$refs['content']
content.scrollTo({top: content.scrollHeight - content.clientHeight})
})
}, },
} }
} }
@ -131,18 +134,20 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
top: 0; top: 0;
overflow: auto;
color: white; color: white;
font-size: 1.4rem; font-size: 1.4rem;
.scroll {
height: calc(100vh - @header-height);
}
.content { .content {
padding-top: 6rem; height: calc(100vh - @header-height);
.list { .list {
height: calc(100vh - 6rem); padding: @padding-page;
overflow: auto; padding-top: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 @padding-page;
.item { .item {
padding: @padding-page; padding: @padding-page;

2
src/pages/message/notice/NoticeSetting.vue

@ -77,7 +77,7 @@
import Switches from "../components/swtich/switches"; import Switches from "../components/swtich/switches";
export default { export default {
name: "SystemNotice", name: "NoticeSetting",
components: {Switches}, components: {Switches},
props: { props: {
modelValue: false modelValue: false

57
src/pages/message/notice/SystemNotice.vue

@ -1,6 +1,6 @@
<template> <template>
<div id="SystemNotice"> <div id="SystemNotice">
<BaseHeader> <BaseHeader :isFixed="false">
<template v-slot:center> <template v-slot:center>
<span class="f16">系统通知</span> <span class="f16">系统通知</span>
</template> </template>
@ -10,21 +10,23 @@
</BaseHeader> </BaseHeader>
<Loading v-if="loading"/> <Loading v-if="loading"/>
<div class="content" v-else> <div class="content" v-else>
<div class="list" ref="content"> <Scroll ref="mainScroll">
<NoMore/> <div class="list">
<!--TODO 超过3行显示全文--> <NoMore/>
<div class="item" v-for="item in list" @click="goDetail(item)"> <!--TODO 超过3行显示全文-->
<div class="title">{{ item.title }} <div class="item" v-for="item in list" @click="goDetail(item)">
<div class="ml1r not-read" v-if="!item.read"></div> <div class="title">{{ item.title }}
</div> <div class="ml1r not-read" v-if="!item.read"></div>
<div class="time">{{ item.time }}</div> </div>
<div class="content-text">{{ item.content }}</div> <div class="time">{{ item.time }}</div>
<div class="look-detail" v-if="item.detail"> <div class="content-text">{{ item.content }}</div>
<span>查看详情</span> <div class="look-detail" v-if="item.detail">
<back direction="right" scale=".6"/> <span>查看详情</span>
<back direction="right" scale=".6"/>
</div>
</div> </div>
</div> </div>
</div> </Scroll>
<!-- TODO 子页面未做--> <!-- TODO 子页面未做-->
<div class="hover-dialog left" v-if="isShowLeftHover"> <div class="hover-dialog left" v-if="isShowLeftHover">
@ -61,10 +63,13 @@
<script> <script>
import {nextTick} from "vue"; import {nextTick} from "vue";
import Mask from "../../../components/Mask"; import Mask from "../../../components/Mask";
import Scroll from "../../../components/Scroll";
import BasePage from "../../BasePage";
export default { export default {
extends: BasePage,
name: "SystemNotice", name: "SystemNotice",
components: {Mask}, components: {Mask, Scroll},
data() { data() {
return { return {
loading: false, loading: false,
@ -132,11 +137,8 @@ export default {
this.loading = true this.loading = true
await this.$sleep(700) await this.$sleep(700)
this.loading = false this.loading = false
await nextTick()
nextTick(() => { this.$refs.mainScroll.scrollBottom()
let content = this.$refs['content']
content.scrollTo({top: content.scrollHeight - content.clientHeight})
})
}, },
goDetail(item) { goDetail(item) {
item.read = true item.read = true
@ -157,19 +159,20 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
top: 0; top: 0;
overflow: auto;
color: white; color: white;
font-size: 1.4rem; font-size: 1.4rem;
.scroll {
height: calc(100vh - @header-height - @header-height);
}
.content { .content {
padding-top: 6rem; height: calc(100vh - @header-height);
padding: @padding-page;
padding-top: 0;
box-sizing: border-box;
.list { .list {
height: calc(100vh - 12rem);
overflow: auto;
box-sizing: border-box;
padding: 0 @padding-page;
.item { .item {
padding: @padding-page; padding: @padding-page;
background: @second-btn-color-tran; background: @second-btn-color-tran;

88
src/pages/message/notice/TaskNotice.vue

@ -1,6 +1,6 @@
<template> <template>
<div id="TaskNotice"> <div id="TaskNotice">
<BaseHeader> <BaseHeader :isFixed="false">
<template v-slot:center> <template v-slot:center>
<span class="f16">任务通知</span> <span class="f16">任务通知</span>
</template> </template>
@ -10,30 +10,32 @@
</BaseHeader> </BaseHeader>
<Loading v-if="loading"/> <Loading v-if="loading"/>
<div class="content" v-else> <div class="content" v-else>
<div class="list" ref="content"> <Scroll ref="mainScroll">
<NoMore/> <div class="list">
<!--TODO 超过3行显示全文--> <NoMore/>
<div class="item" v-for="item in list" @click="goDetail(item)"> <!--TODO 超过3行显示全文-->
<div class="header"> <div class="item" v-for="item in list" @click="goDetail(item)">
<div class="left"> <div class="header">
<img src="../../../assets/img/icon/message/task.webp" alt=""> <div class="left">
<img src="../../../assets/img/icon/message/task.webp" alt="">
</div>
<div class="right">
<span>成长任务</span>
<img @click.stop="isShowSetting = true" src="../../../assets/img/icon/menu-gray.png" alt="">
</div>
</div> </div>
<div class="right"> <div class="title">{{ item.title }}
<span>成长任务</span> <div class="ml1r not-read" v-if="!item.read"></div>
<img @click.stop="isShowSetting = true" src="../../../assets/img/icon/menu-gray.png" alt=""> </div>
<div class="time">{{ item.time }}</div>
<div class="content-text">{{ item.content }}</div>
<div class="look-detail" v-if="item.detail">
<span>查看详情</span>
<back direction="right" scale=".6"/>
</div> </div>
</div>
<div class="title">{{ item.title }}
<div class="ml1r not-read" v-if="!item.read"></div>
</div>
<div class="time">{{ item.time }}</div>
<div class="content-text">{{ item.content }}</div>
<div class="look-detail" v-if="item.detail">
<span>查看详情</span>
<back direction="right" scale=".6"/>
</div> </div>
</div> </div>
</div> </Scroll>
<div class="footer" @click="$no">查看更多任务</div> <div class="footer" @click="$no">查看更多任务</div>
</div> </div>
@ -60,15 +62,19 @@
import {nextTick} from "vue"; import {nextTick} from "vue";
import Mask from "../../../components/Mask"; import Mask from "../../../components/Mask";
import FromBottomDialog from "../../../components/dialog/FromBottomDialog"; import FromBottomDialog from "../../../components/dialog/FromBottomDialog";
import Scroll from "../../../components/Scroll";
import BasePage from "../../BasePage";
export default { export default {
extends: BasePage,
name: "SystemNotice", name: "SystemNotice",
components: { components: {
FromBottomDialog FromBottomDialog,
Scroll
}, },
data() { data() {
return { return {
loading:false, loading: false,
isShowSetting: false, isShowSetting: false,
openNotice: false, openNotice: false,
list: [ list: [
@ -86,6 +92,20 @@ export default {
time: '2021-10-12 12:12', time: '2021-10-12 12:12',
content: '4.24-4.28,公开发布1个道具作品,即得50-100的额外流量。快来发布视频,获得更多关注' content: '4.24-4.28,公开发布1个道具作品,即得50-100的额外流量。快来发布视频,获得更多关注'
}, },
{
type: 1,
title: '发作品得流量',
detail: 'xxx',
time: '2021-10-12 12:12',
content: '4.24-4.28,公开发布1个道具作品,即得50-100的额外流量。快来发布视频,获得更多关注'
},
{
type: 1,
title: '发作品得流量',
detail: 'xxx',
time: '2021-10-12 12:12',
content: '4.24-4.28,公开发布1个道具作品,即得50-100的额外流量。快来发布视频,获得更多关注'
},
] ]
} }
}, },
@ -99,11 +119,8 @@ export default {
this.loading = true this.loading = true
await this.$sleep(700) await this.$sleep(700)
this.loading = false this.loading = false
await nextTick()
nextTick(() => { this.$refs.mainScroll.scrollBottom()
let content = this.$refs['content']
content.scrollTo({top: content.scrollHeight - content.clientHeight})
})
}, },
goDetail(item) { goDetail(item) {
item.read = true item.read = true
@ -124,18 +141,20 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
top: 0; top: 0;
overflow: auto;
color: white; color: white;
font-size: 1.4rem; font-size: 1.4rem;
.scroll {
height: calc(100vh - @header-height - @header-height);
}
.content { .content {
padding-top: 6rem; height: calc(100vh - @header-height);
.list { .list {
height: calc(100vh - 12rem); padding: @padding-page;
overflow: auto; padding-top: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 @padding-page;
.item { .item {
padding: @padding-page; padding: @padding-page;
@ -204,8 +223,9 @@ export default {
.footer { .footer {
border-top: 1px solid @line-color; border-top: 1px solid @line-color;
height: 6rem; height: @header-height;
display: flex; display: flex;
box-sizing: border-box;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }

2
src/pages/people/components/People.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="People"> <div class="People" @click="$nav('/me/uploader')">
<img :src="$imgPreview(people.avatar)" alt="" class="head-image pull-left"> <img :src="$imgPreview(people.avatar)" alt="" class="head-image pull-left">
<div class="content"> <div class="content">
<template v-if="mode === 'normal'"> <template v-if="mode === 'normal'">

4
src/router/routes.js

@ -70,6 +70,7 @@ import PasswordLogin from "../pages/login/PasswordLogin";
import VerificationCode from "../pages/login/VerificationCode"; import VerificationCode from "../pages/login/VerificationCode";
import RetrievePassword from "../pages/login/RetrievePassword"; import RetrievePassword from "../pages/login/RetrievePassword";
import Help from "../pages/login/Help"; import Help from "../pages/login/Help";
import Uploader from "../pages/me/Uploader";
const routes = [ const routes = [
// {path: '', component: Music}, // {path: '', component: Music},
@ -155,9 +156,10 @@ const routes = [
{path: '/login/retrieve-password', component: RetrievePassword}, {path: '/login/retrieve-password', component: RetrievePassword},
{path: '/login/help', component: Help}, {path: '/login/help', component: Help},
//message页面要跳到这页面,所以放后面 //前面的要跳到这些页面,所以放后面
{path: '/me/request-update', component: RequestUpdate}, {path: '/me/request-update', component: RequestUpdate},
{path: '/me/my-request-update', component: MyRequestUpdate}, {path: '/me/my-request-update', component: MyRequestUpdate},
{path: '/me/uploader', component: Uploader},
] ]
export default routes export default routes

2
src/store/index.js

@ -642,7 +642,7 @@ const store = Vuex.createStore({
store.excludeRoutes.splice(resIndex, 1) store.excludeRoutes.splice(resIndex, 1)
} }
} }
// console.log('store.excludeRoutes', store.excludeRoutes) console.log('store.excludeRoutes', store.excludeRoutes)
}, },
}, },
actions: { actions: {

Loading…
Cancel
Save