|
@@ -85,7 +85,7 @@ export default {
|
|
// console.log('二次加载this.$route.query.fromPage', this.$route.query.fromPage, this.$store.state.pageHistory);
|
|
// console.log('二次加载this.$route.query.fromPage', this.$route.query.fromPage, this.$store.state.pageHistory);
|
|
// console.log('二次加载', this.$route.query.fromPage && !this.$store.state.pageHistory[this.$route.query.fromPage]);
|
|
// console.log('二次加载', this.$route.query.fromPage && !this.$store.state.pageHistory[this.$route.query.fromPage]);
|
|
const fromPage = localStorage.getItem(`${this.$route.query.fromPage}`)
|
|
const fromPage = localStorage.getItem(`${this.$route.query.fromPage}`)
|
|
- if (this.$route.query?.fromPage !== 'undefined' && !this.$store.state.pageHistory[this.$route.query.fromPage] && !fromPage) {
|
|
|
|
|
|
+ if (this.$route.query?.fromPage && this.$route.query?.fromPage !== 'undefined' && !this.$store.state.pageHistory[this.$route.query.fromPage] && !fromPage) {
|
|
// console.log(93939);
|
|
// console.log(93939);
|
|
this.$store.commit('setPageHistory', {
|
|
this.$store.commit('setPageHistory', {
|
|
[this.$route.query.fromPage]: 1
|
|
[this.$route.query.fromPage]: 1
|